Reason for white/empty/blank screen when loading a php page ?

Smolek

Diamond Member
Aug 30, 2001
4,985
1
0
I am trying to install a php script and when I try to pull it up via the web all I get is a blank/empty/white screen. I know this is vague, but I was wondering if there is there a common reason why this happens ?
 

Modeps

Lifer
Oct 24, 2000
17,254
44
91
Unfortunately your question is just too vague Smolek. The php script could not be outputting anything... it it weren't executing property, it would have errors. Is your webserver equipped for PHP?
 

Smolek

Diamond Member
Aug 30, 2001
4,985
1
0
Yes, php is enabled

Is there some type of code I could add somewhere to have it create an error report ?
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: Smolek
Yes, php is enabled

Is there some type of code I could add somewhere to have it create an error report ?

Not in a simple way IRC.


Save this as test.php and see what you get.
 

Smolek

Diamond Member
Aug 30, 2001
4,985
1
0
The test file works fine

Maybe somethings wrong with the installer?

I'll try and do it manually. I've attached the code below, from what I gather this is what the installer tries to accomplish

1) Save host path, user, pass, db to conf.php
2) create [sitename] config in /inc/siteconf/ with 777 CHMOD
3) Fill DB with dump.sql

Iis this all it's asking to be done
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
your code will only work on two conditions:
1. if no $action is set:
if (! isset ($action)) - on top

2. if $action is set, and the value is "install"
if (isset ($action) && $action == "install")

It doesn't say anything about $action being defined with value != "install" ..

For it to spit output for any $action (defined or not), put an else statement.
So, the next time you open the url, it will at least echo something.

Although i figure it would at least display the input form if you just access it without any action ...

But hmmm... on a second thought, where will you get $action from?
Are you trying to get it from user's POST value (ie: when the user click on the submit button?)
In that case, you'd check for $_POST['action'] instead of $action, unless your server is set to treat $_REQUEST variables as regular variable (i don't remember the term for it, but i know it's not recommended)
 

Firus

Senior member
Nov 16, 2001
525
0
0
open up the php.ini file and change the ERROR_REPORT to = E_ALL. This should throw some more errors and possibly help you see what the problem is. P.S. - restart your webserver after the changes are made

-firus