|
Posted by Sιverin Richard on 08/25/07 13:08
You're in the right way Bob,
php.ini and httpd.conf specifie the behaviour of apache.
I had the same problem:
e_all error is to be set;
and further in the php.ini the
display-error:ON.
And be carefull to work on the right php.ini file!!!!!!!!!
( they may be several, only the good one acts on apache).
php.ini or httpd.conf -don't rememlber) specifie also the tag to be
interpreted:
sometimes: <? and <?php
sometimes: only <?php.
That why on two different configuraiotn, the same code behave
differently, depending on specified "open tags".
And specifie the extension to be treated by php: php, php5,php3...
if you add here "txt" for example, then all .txt files would be
interpreted like php files.
if your old script names php3 and this extension is not specified in
your new httpd.conf, all php3 files will be shown as text.
Tom wrote:
> On Wed, 22 Aug 2007 08:08:12 +0200, Bob Bedford 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
>>
>>
>
>
>
> How were the upgrades, did you do them individually from source code or did you
> have packages for those with your OS? I need to update PHP and several other
> software programs, but was interested what approach you took.
>
> Tom
[Back to original message]
|