write all php errors,notices,warnings to txt file

write all php errors,notices,warnings to txt file

could I also write url or filename location

windows server 2008 iis7
LVL 1
rgb192Asked:
Who is Participating?
 
ray-solomonConnect With a Mentor Commented:
Set that in your php.ini file
http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html

You can also set it to log certain errors.
0
 
rgb192Author Commented:
i want it to show all errors, warnings and notices

that link just allows php.ini to show certain errors
0
 
Ray PaseurConnect With a Mentor Commented:
Try using error_reporting(E_ALL) and use ini_set('display_errors', FALSE);
0
 
rgb192Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.