Forum Moderators: coopster

Message Too Old, No Replies

php5 not working

         

alce

7:01 am on Jul 28, 2006 (gmt 0)

10+ Year Member



I recently upgraded to php 5 and nothing seems to be working properly. Errors are not being displayed even with error_reporting(E_ALL). Whenever the parser finds something it does not like, a blank page is displayed.

Furthermore, even a simple include "file.php" does not work. No error, no included file. Nada.
However, php is installed and "working". echo "hello" does work.

coopster

1:01 pm on Jul 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Sounds like you need to go through your
php.ini
configuration.

Romeo

1:58 pm on Jul 28, 2006 (gmt 0)

10+ Year Member



a blank page is displayed.

It is a nice feature not to show internal error information and leak out sensitive information (like local paths, etc) to public users.

However, you should find all errors being recorded in the webserver's 'error_log'.

Kind regards,
R.

[edited by: Romeo at 1:59 pm (utc) on July 28, 2006]

alce

3:05 pm on Jul 28, 2006 (gmt 0)

10+ Year Member



I totally agree with you Romeo but for a production server, not a development one.
While developing i like to see all the errors and warnings right after I hit refresh.

eelixduppy

3:17 am on Jul 30, 2006 (gmt 0)



>>>Sounds like you need to go through your php.ini configuration.

Indeed. Try replacing your current php.ini file with the recommended one that came with php.

mcavic

6:49 am on Jul 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From php.ini 5.1.4:

; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = Off