Need php help after Core 3 => 4

Peter Arremann loony at loonybin.org
Thu Jul 7 21:41:58 UTC 2005


On Thursday 07 July 2005 09:33, Steven W. Orr wrote:
> I have a simple phpinfo.php that still seems to work fine but I have a php
> app that now does nothing. I don't really know php so I don't know what to
> do.
>
> http://frambors.syslang.net/pscal/index.php
>
> When I run it I get a blank screen with no error in the apache logs.
>
> If I'm on my server and say
>
> php < index.php
>
> I get no output.
>
> I did log into mysql and accessed the tables fine.
>
> Any idea? :-(
>
> TIA

Most likely there is a trivial error in your script - probably something like 
a missing php module or so - and you're simply not seing the error on your 
screen since the defaults for error handling have been changed in FC4. Older 
releases used to print errors to your screen while the newer ones supress 
reporting of errors to the php stdout stream for security reasons. 

Errors are now written to the apache error log by default 
(/var/log/httpd/error.log by default) - you should be able to see there what 
error occured. 

If you want to revert back to the old behavior (useful for development and 
debugging) look at your php.ini file in the section Error Reporting. You will 
see the setting display_errors is now set to Off as default. If you turn that 
on you will get the error messages as before. 

I have not done too much php dev on FC3 (most of our stuff went from FC2 or 
RHEL3 to FC4 or RHEL4) but if my memory serves me right, some php modules 
(i.e. php-gd) are now separate rpm packages while they were part of the basic 
php install before. Also, things like error logging or the always popular 
register_globals are likely starting points. 

Peter.




More information about the fedora-list mailing list