|
Posted by Mike G. on 08/22/07 14:14
On Aug 22, 2:08 am, "Bob Bedford" <b...@bedford.com> wrote:
> Hi all,
>
> strange what's appening. I just upgraded from PHP4 to PHP5 and from apache1
> to apache2 but I don't see PHP errors on screen anymore (in my case parse
> error).
>
> In the log I've errors: PHP parse error....what's strange is that this
> script is exactly the same as the one on the server also with php5.
> But I found that sometimes I forgot to put <?php and I did put <? instead
> (without php)
>
> How can I set apache or PHP to show those errors on screen instead of only
> in the log file. I've set error_reporting = E_ALL in the PHP.ini but I still
> have a blank page (in PHP 4 I had the error on screen). In apache NG didn't
> help.
>
> Bob
The configuration option you need to set is "display_errors". Make
sure it's on.
Also, you can try putting this at the top of your script:
<?php
ini_set('display_errors', 'On');
?>
Navigation:
[Reply to this message]
|