Running PHP under IIS on my Win XP Pro system. I cannot debug my scripts easily because get PHP to write to the error log I specify. Here are the relevant (I think) php.ini entries:
error_reporting = E_ALL & E_STRICT display_errors = Off log_errors = On error_log = "c:/php5/log/php.log"
I had the slashes going the Windows/DOS way before. In either case, it did not write to the file php.log in that directory. The log file is writable by IUSR_SERVERNAME, the directory is writable by IUSR_SERVERNAME, the parent directory is writable by IUSR_SERVERNAME. I’m sure I’m missing something stupid.
Any tips?
Have you tried in the php file itself?
Update:
The problem is that you are using a bitwise AND where you should use a bitwise OR
Try this
output:
int(6143) int(2048) int(8191) int(0)
So basically you are writing
Effectively turning off the error reporting.
Change the & for an | in your php.ini and you should be ok.