When I developed a website on my localserver it was working fine.
Now that I’ve uploaded it live I’m getting several notices.
Notice: Undefined index: … on line 14
I’ve figured out that it happens because I’m using variables which arn’t defined, and would like to go through and fix it. But I need a live version working tonight.
Is it possible to suppress the Notices and have the website act as it does on my localhost while its on my live server?
You can choose which kind of errors will show up on your site on a global scale through php.ini or through .htaccess for specific folders, or per script by using
error_reporting().Read more on that and which options to set for your specific needs at http://www.php.net/manual/en/function.error-reporting.php
Also read: http://www.php.net/error-reporting