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. Quote 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. Quote 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(). Quote Link to comment https://forums.phpfreaks.com/topic/271051-eval-error/#findComment-1394544 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.