I just installed php 5.1.6 on Mac OSX 10.4.6. Now I get no parse error, just a blank page. In php 4.3 when it had a parse error it use to come up with error on line ##
e.g.
<?php
echo 'error'
echo 'error'
?>
no ; at end, it would say error Line 2, now just a blank page, no error message. This makes it hard to debug.
Is there some I can do to turn it on?php.ini -- display_errors, error_reportingthanks for pointing me to the php.ini but the changes I do don't work, what am I doing wrong?
I edit with BBedit 8.2.6 which handles to permissions to do so. I edit the Configuration File (php.ini) Path/usr/local/php5/lib/php.ini which is what phpinfo() say is the ini file.
So I got the right file
I remove the ; comment out
from:
; - display_errors = Off [Security]
to
- display_errors = On [Security]
or
- display_errors = 1 [Security]
or have tryed with no - at beginning
each time I restart webserver in system preferences sharing which should reparse the ini file.
Even tried restarting whole computer & another machine
What am I missing? I know its likely something simple but help!!You're uncommenting the wrong thing - that entire comment section in the beginning is there for instruction only.
Look farther down.
e.g.
<?php
echo 'error'
echo 'error'
?>
no ; at end, it would say error Line 2, now just a blank page, no error message. This makes it hard to debug.
Is there some I can do to turn it on?php.ini -- display_errors, error_reportingthanks for pointing me to the php.ini but the changes I do don't work, what am I doing wrong?
I edit with BBedit 8.2.6 which handles to permissions to do so. I edit the Configuration File (php.ini) Path/usr/local/php5/lib/php.ini which is what phpinfo() say is the ini file.
So I got the right file
I remove the ; comment out
from:
; - display_errors = Off [Security]
to
- display_errors = On [Security]
or
- display_errors = 1 [Security]
or have tryed with no - at beginning
each time I restart webserver in system preferences sharing which should reparse the ini file.
Even tried restarting whole computer & another machine
What am I missing? I know its likely something simple but help!!You're uncommenting the wrong thing - that entire comment section in the beginning is there for instruction only.
Look farther down.