How To Stop Showing Php Warnings

RegisterLogin
How To Stop Showing Php Warnings
Post Description: Am Interested In Knowing How I Can Stop Displaying Warning Errors On My Php Scripts
Tags: How, To, Stop, Showing, Php, Warnings
This Post Was Posted On Nov 05, 2009 By Edwuard #2687
im kinda a novice when it comes to PHP. i figured out that if i wanted to show the errors on my php scripts all i have to do is use this formula:

ini_set('display_errors', 1);

But i only want errors to be shown, not the warnings, how can i configure this on my scripts. i looked at the php ini_set warnings in the configurations, but even i makes some changes for example, i still get this php warning failed to open stream. i read somewhere else that you can use htaccess for php warnings, but i dont have a htaccess folder . i tried to capture all the php and mysql warnings so i know which errors i am getting, but when i do the fopen function, it doesnt write anything to the file so i can keep track of the warnings. so want to know how does php warning handling work? i just want to stop all the warnings on my scripts because it doesnt look ok
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Tue Dec 20, 2011 6:52 am
Powered by: Webune Forums V3