blank page of PHP script
Rushan Sobar
Rushan at mec.com.jo
Wed May 16 16:58:38 UTC 2007
I Had this issue before
Try enabling error reporting in /etc/php.ini
error_reporting = E_ALL
display_errors = On
it will show you what's going on the blank page , it help me to solve the
error I had.
but remember to turn it off back after you solve your issue.
Regards
Rushan
----- Original Message -----
From: "Troy Knabe" <knabe at 4j.lane.edu>
To: "General Red Hat Linux discussion list" <redhat-list at redhat.com>
Sent: Wednesday, May 16, 2007 7:09 PM
Subject: RE: blank page of PHP script
>I had a similar issue and it was selinux that was blocking the php script.
>Check your /var/log/messages for selinux information.
>
> -Troy
>
> -----Original Message-----
> From: redhat-list-bounces at redhat.com
> [mailto:redhat-list-bounces at redhat.com] On Behalf Of Michael Velez
> Sent: Wednesday, May 16, 2007 8:47 AM
> To: 'General Red Hat Linux discussion list'
> Subject: RE: blank page of PHP script
>
>
>
>
>> Guys
>>
>> I am using latest version of mysql, PHP and Apache 2 on RHEL 4.
>>
>> Every thing is working fine , even simple php pages are being
>> displayed correctly , howvere , when i load some PHP script files ,
>> page remain blank and nothing being executed on server side.
>>
>> Here is the code of php file :
>>
>> <?php
>> //define("PB_CRYPT_LINKS" , 1);
>> define("_LIBPATH","./lib/");
>> require_once _LIBPATH . "site.php";
>> $site = new CSite("./site.xml",true); $site->Run(); ?>
>>
>
> This question would best be asked on a php list. That said, a blank
> screen usually means there's a syntax error in your script. This script
> seems pretty short and looks fine to me so the problem could be in the
> script you're requiring: site.php. If site.php has a syntax error, you
> will also get a blank screen trying to access this php script.
>
> Michael
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
More information about the redhat-list
mailing list