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