You are here: Re: PHP4->PHP5 can't see errors on web browser « All PHP « IT news, forums, messages
Re: PHP4->PHP5 can't see errors on web browser

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация