Discussion:
[PHP-INSTALL] still getting a blank screen after reading faq
William Johnston
2008-10-08 12:55:07 UTC
Permalink
Php-install:



I get a blank screen when running the initial PHP tutorial page from the PHP
manual.



Here is what I did:

Installed the php-5.2.6-win32-installer.exe on a 64-bit Vista Business OS.

Configured the installation for the IIS ISAPI module.

Checked the path. (It was correct.)

Added both the php5asapi.dll and php5ts.dll extensions to "ISAPI AND CGI
RESTRICTIONS" tab from inetmgr.



Why am I still getting a blank screen?



Thanks,

William Johnston
Tommy Peterson
2008-10-08 13:26:30 UTC
Permalink
A blank screen usually means you are 1) not putting anything back to the
screen (Im not familiar with the tutorial you are referring to) or 2) you
have an error but do not have error reporting turned on.
____________________________
William Johnston
2008-10-08 14:30:41 UTC
Permalink
Tommy:

The source for the tutorial is as follows:

<html>

<head>

<title>PHP Test</title>

</head>

<body>

<?php echo '<p>Hello World</p>'; ?>

</body>

</html>



Again, I still get a blank screen.

Any suggestions?

Regards,

William Johnston



From: Tommy Peterson [mailto:***@americaschoice.org]
Sent: Wednesday, October 08, 2008 9:27 AM
To: William Johnston
Cc: php-***@lists.php.net
Subject: Re: [PHP-INSTALL] still getting a blank screen after reading faq




A blank screen usually means you are 1) not putting anything back to the
screen (Im not familiar with the tutorial you are referring to) or 2) you
have an error but do not have error reporting turned on.
____________________________
Tommy Peterson
2008-10-08 14:38:42 UTC
Permalink
Do this file is an html file with an .htm or .html extension? And you are
using php inside it? If so, do you have your server set up to run PHP
against a file with .html/.htm?
William Johnston
2008-10-08 14:48:00 UTC
Permalink
The file extension is .php.

I simply set the file extension to open IE with open with.

William Johnston



From: Tommy Peterson [mailto:***@americaschoice.org]
Sent: Wednesday, October 08, 2008 10:39 AM
To: William Johnston
Cc: php-***@lists.php.net
Subject: Re: [PHP-INSTALL] still getting a blank screen after reading faq



Do this file is an html file with an .htm or .html extension? And you are
using php inside it? If so, do you have your server set up to run PHP
against a file with .html/.htm?
k***@gmail.com
2008-10-08 14:56:37 UTC
Permalink
can u send the source code as u see in your browser
Post by William Johnston
The file extension is .php.
I simply set the file extension to open IE with open with.
William Johnston
Sent: Wednesday, October 08, 2008 10:39 AM
To: William Johnston
Subject: Re: [PHP-INSTALL] still getting a blank screen after reading faq
Do this file is an html file with an .htm or .html extension? And you are
using php inside it? If so, do you have your server set up to run PHP
against a file with .html/.htm?
--
Kranthi.
Tommy Peterson
2008-10-08 15:51:43 UTC
Permalink
OK. If you don't have error messages on then I would turn them on to see
what is going on. I ran this and I got "Hello World". Other than that I
don't know what else to suggest.
William Johnston
2008-10-09 20:12:53 UTC
Permalink
Tommy:

How do I set error messages?

Thanks,

William Johnston





From: Tommy Peterson [mailto:***@americaschoice.org]
Sent: Wednesday, October 08, 2008 11:52 AM
To: William Johnston
Cc: php-***@lists.php.net
Subject: Re: [PHP-INSTALL] still getting a blank screen after reading faq



OK. If you don't have error messages on then I would turn them on to see
what is going on. I ran this and I got "Hello World". Other than that I
don't know what else to suggest.
Tommy Peterson
2008-10-08 14:45:39 UTC
Permalink
I use Apache and you would do this the following way:
AddType application/x-httpd-php .php .htm .html
in the httpd.ini file

The following page might help you better than I can with IIS (I know very
little about it):
http://www.thewirelessfaq.com/what_s_with_the_http_server_mime_types
William Johnston
2008-10-09 20:21:04 UTC
Permalink
Tommy:

I ran the chglist.vbs script from the article you mentioned and received an
IIS 404.2 error for not having the correct ISAPI and CGI restrictions.

I then added both an ISAPI and CGI restrictions and also an ISAPI filter for
the php5isapi.dll.


I now get the error:





HTTP Error 500.0 - Internal Server Error


The page cannot be displayed because an internal server error has occurred.

Any more suggestions?

I am using IIS 7.0.

Thanks,

William Johnston





From: Tommy Peterson [mailto:***@americaschoice.org]
Sent: Wednesday, October 08, 2008 10:46 AM
To: William Johnston
Cc: php-***@lists.php.net
Subject: Re: [PHP-INSTALL] still getting a blank screen after reading faq



I use Apache and you would do this the following way:
AddType application/x-httpd-php .php .htm .html
in the httpd.ini file

The following page might help you better than I can with IIS (I know very
little about it):
http://www.thewirelessfaq.com/what_s_with_the_http_server_mime_types
Tommy Peterson
2008-10-10 12:03:21 UTC
Permalink
Sorry, I was out of the office yesterday.

That is not a PHP error. Your server has an issue with something. I
suggest that you check your server logs for the specific cause.

To get errors for PHP to show up you find the spot in your PHP.ini file
that says " Error handling and logging". Since you apparently have a set
up issue going on here I suggest that you remove the semicolon to the left
of the ";error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR". It will
pop up a little box and display the errors as PHP starts up.

Then, comment the above out after you have resolved any compiliation erros
and then remove the semicolon to the left of the following
"error_reporting = E_ALL & E_STRICT". Then scroll down passed this section
and make sure "display_errors" is on.

Ensure that no other options in that section are uncommented; only have
one or the other at a time uncomments. And of course restart your server
each time you make a change to the ini file.

Hope that helps.

Keith Roberts
2008-10-08 17:13:13 UTC
Permalink
Hi William.

Try copying this to a file called show-php-info.php:

<head>
<title>php-info</title>
</head>

<?php phpinfo(); ?>

Then load that in your browser.

You should see ALOT of PHP information that will help you.

If not, something is not working right.

You could try XAMPP for windows. That might help you get
started. Check out php-debuggers.net below for the link to
XAMPP.

HTH

Keith Roberts

-----------------------------------------------------------------
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

The mind of the prudent is ever getting knowledge, and the
eear of the wise is ever seeking, inquiring for and craving
knowledge. Pr. 18:15 Amp

Where will you spend Eternity?
http://www.fellowshiptractleague.org/tracts/images/PDF/tract_130.pdf

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
Subject: RE: [PHP-INSTALL] still getting a blank screen after reading faq
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
Again, I still get a blank screen.
Any suggestions?
Regards,
William Johnston
Sent: Wednesday, October 08, 2008 9:27 AM
To: William Johnston
Subject: Re: [PHP-INSTALL] still getting a blank screen after reading faq
A blank screen usually means you are 1) not putting anything back to the
screen (Im not familiar with the tutorial you are referring to) or 2) you
have an error but do not have error reporting turned on.
____________________________
Loading...