Re: Need php help after Core 3 => 4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux