Forum Moderators: coopster

Message Too Old, No Replies

PHP 4 w/ IIS 6 = Blank PHP Pages

         

reybango

2:50 am on Jan 16, 2007 (gmt 0)

10+ Year Member



Hi guys,

I've installed PHP4 in isapi mode on Win2k3/IIS6. When I try to access a PHP page, it comes back blank. The odd part is that if I just a test page with phpinfo() in it, I get results.

I've tried everything and spent the last 2 hours googling for a solution. Any ideas on why this would be happening?

Rey...

eelixduppy

3:02 am on Jan 16, 2007 (gmt 0)



The odds are you are experiencing a fatal error. Try turning on your error reporting or checking your error logs. If you want you can also try another real quick test script such as

echo 'hello world!';

If this also works then it is definitely the script, not the server. But check your error logs to see what's going on.

scriptmasterdel

1:02 pm on Jan 16, 2007 (gmt 0)

10+ Year Member



I haven't really got any useful ideas:

But just to make sure you are not doing what i have done a hundred times, you should declare php with php in the opening tag. This is a problem i have on my server, because it's an old version of PHP everything has to be declared and i can't use the short echo tag e.g. <?="Hello World"?> i have to use <?php echo "Hello World";?>

If you are not already using this method then please try <?php instead of <? and let me know if this makes any difference.

I hope this makes sence.

Del

reybango

2:24 pm on Jan 16, 2007 (gmt 0)

10+ Year Member



@eelix: Your suggestion really helped me narrow it down. It turned out to be a wrong dir specified in the actual software in question and not PHP.

Thanks again for your help.

Rey...

reybango

2:25 pm on Jan 16, 2007 (gmt 0)

10+ Year Member



@scriptmasterdel: I was able to figure it out but I really appreciate your help. Thanks!

Rey