I am moving the files to the server and is using variables like $_GET[mode] without ”(single quotes) in ‘mode’. It works perfectly locally but on the server i am getting notices.. How can i overcome this?here is my phpinfo file
phpinfo
Is there any way we can have same behavior to work on server as well?
I am moving the files to the server and is using variables like $_GET[mode]
Share
How can you overcome the
E_NOTICEs that complain that you forgot quotes around your strings?Add quotes around your strings.
Also it sounds like the
error_reportinglevel on your local server is not sufficient. It should be high, so that you see these sorts of mistakes as you develop your website/application.On your production server it may be set lower.