bmaid Posted November 22, 2012 Share Posted November 22, 2012 I am learning php. I am trying to send email using this eval() code. eval("job();"); But getting error: eval()'d code on line 1 Any advice? thanks in advance. Link to comment https://forums.phpfreaks.com/topic/271051-eval-error/ Share on other sites More sharing options...
trq Posted November 22, 2012 Share Posted November 22, 2012 If your just learning php forget eval exists. Link to comment https://forums.phpfreaks.com/topic/271051-eval-error/#findComment-1394518 Share on other sites More sharing options...
DavidAM Posted November 23, 2012 Share Posted November 23, 2012 If job() is a function in the current scope, just execute it without the eval(). Link to comment https://forums.phpfreaks.com/topic/271051-eval-error/#findComment-1394544 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.