| Author |
PHP4->PHP5 can't see errors
|
|
| Bob Bedford 2007-08-21, 1:22 pm |
| Hi all,
strange thing is appening. I just upgraded from PHP4 to PHP5 and from
apache1 to apache2 but I don't see errors on screen anymore.
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.
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 It does
nothing. Is that in apache ?
Bob
| |
| Davide Bianchi 2007-08-21, 1:22 pm |
| On 2007-08-21, Bob Bedford <bob@bedford.com> wrote:
> strange thing is appening. I just upgraded from PHP4 to PHP5 and from
> apache1 to apache2 but I don't see errors on screen anymore.
In php >= 4.1 you can specify if you want to log or display the
errors in the page. See the documentation of PHP.
Davide
--
A little rudeness and disrespect can elevate a meaningless interaction into a
battle of wills and add drama to an otherwise dull day.
--Calvin discovers Usenet
| |
| David McKenzie 2007-08-22, 1:26 am |
| Bob Bedford wrote:
> Hi all,
>
> strange thing is appening. I just upgraded from PHP4 to PHP5 and from
> apache1 to apache2 but I don't see errors on screen anymore.
>
> 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.
>
> 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 It does
> nothing. Is that in apache ?
>
> Bob
>
>
You'd be best off asking alt.php
--
DM davidm@cia.com.au
'It would go against respecting principles and truth if you have to
respect and accept anything just because it is the other side's view.'
- Kim Jung Ill
|
|
|
|