display_errors in a single script only
Posted: Thu Sep 02, 2010 10:54 am
I have a script that runs locally, but does not run through on the live server.
I'd like to add this to the top of the script:
error_reporting(E_ALL);
ini_set("display_errors", 1);
but I don't want to change these setting site-wide... only for this one script. Will this code affect this single page only?
(sorry for the newbie question, and I apologize ahead of time if the answer has already been posted somewhere on this forum... I did try a search but couldn't find an answer to this specific question)
any help would be greatly appreciated
I'd like to add this to the top of the script:
error_reporting(E_ALL);
ini_set("display_errors", 1);
but I don't want to change these setting site-wide... only for this one script. Will this code affect this single page only?
(sorry for the newbie question, and I apologize ahead of time if the answer has already been posted somewhere on this forum... I did try a search but couldn't find an answer to this specific question)
any help would be greatly appreciated