My php Pages turn up blank.
Posted by: Asho (---.dynamic.dsl.as9105.com)
Date: August 04, 2007 11:09AM

I have done everything everyone says. Like .php extension, opening it in [localhost].
I have All the services running.

BUT still it turns up blank!

I tried one of the simpleist things.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"[www.w3.org];
<html xmlns="[www.w3.org];
<head>
<title>Todays Date</html>
</head>
<body>
<p>Today's Date (according to this web server) is
<?php

echo date('l, F dS Y.')

?></p>
</body>
</html>

But it still doesn't work.

Funn y thing is that it actually seems to be working, because if I open the .php document in [localhost], then open the source it come up with.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"[www.w3.org];
<html xmlns="[www.w3.org];
<head>
<title>Todays Date</html>
</head>
<body>
<p>Today's Date (according to this web server) is
Saturday, August 04th 2007.</p>
</body>
</html>


Please help.

Thanks,

Ash

Options: ReplyQuote
Re: My php Pages turn up blank.
Posted by: yfastud (---.mia.bellsouth.net)
Date: August 04, 2007 04:45PM

As far as I've experienced, 2 things cause that problem

1. The file is saved as html instead php
2. Firewall blocked wamp

Solutions:
1. Make sure to save your files as php
2. Make sure to enable/to setup an exception port 80; or worst, just TEMPORARY uninstall your firewall to test wamp

Have fun,

[www.jlbn.net] (Basic Guide for WAMP)

Options: ReplyQuote
Re: My php Pages turn up blank.
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: August 04, 2007 08:30PM

name the file test.php and access it like:
[localhost]



CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Clarify Loans
Mortgage and Home Loan Advice


LaxGo Web Directory
Powerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.

Options: ReplyQuote
Re: My php Pages turn up blank.
Posted by: Asho (---.dynamic.dsl.as9105.com)
Date: August 04, 2007 09:33PM

I have done ALL of theese things as sujested before. But still it doesn't work!

Options: ReplyQuote
Re: My php Pages turn up blank.
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: August 04, 2007 10:26PM

try:

<html>
<head>
<title>Todays Date</html>
</head>
<body>
<p>Today's Date (according to this web server) is
<?php

echo date('l, F dS Y.')

?></p>
</body>
</html>





CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Clarify Loans
Mortgage and Home Loan Advice


LaxGo Web Directory
Powerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.

Options: ReplyQuote
Re: My php Pages turn up blank.
Posted by: yfastud (---.mia.bellsouth.net)
Date: August 04, 2007 10:34PM

he he... he he... ;-)

I've just spotted a very BIG mistake in your code, so not sure it just a typo here or your code actually wrong like that. Anyway, in the title line, it has html close tag which will close your page before it has a chance to get to the body

So, if it's really a problem, you should change

<title>Todays Date</html>

To:

<title>Todays Date</title>

Have fun,

[www.jlbn.net] (Basic Guide for WAMP)

Options: ReplyQuote
Re: My php Pages turn up blank.
Posted by: iblastoff (---.cpe.net.cable.rogers.com)
Date: August 05, 2007 07:07AM

how about not closing your html tag at the title?

Options: ReplyQuote
Re: My php Pages turn up blank.
Posted by: Asho (---.dynamic.dsl.as9105.com)
Date: August 05, 2007 02:34PM

Thanks Guys I didn't notice this, lol. Must have been a typo in my code.

Thanks again,
Ash

Options: ReplyQuote


Sorry, only registered users may post in this forum.