PHP Doesn't Display WAMP5
Posted by: tbohon (---.direcpc.com)
Date: July 25, 2007 04:21AM

Wrote a simple PhP page as follows:

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo("<p>Hello, world ...</p>"winking smiley; ?>
</body>
</html>

and placed it in C:\wamp\www which is DocumentRoot.

When I open this page in FireFox, I get a blank page. Viewing the source I see exactly what I show above.

Box is my desktop Win/XP SP2.

I'm new to PhP and just installed WAMP5 today ... so wonder what I've doing wrong???

Tnx in advance.

Tom



Post Edited (07-25-07 04:23)

Options: ReplyQuote
Re: PHP Doesn't Display WAMP5
Posted by: yfastud (---.mia.bellsouth.net)
Date: July 25, 2007 04:26AM

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

If you save your_file.php in c:/wamp/www, then access it like this:

[localhost]

If you save your_file.php in c:/wamp/www/your_folder, then access it like this:

[localhost]

Remember, you have to save your file as php, not html

You can check for more tips from my site accessing through my signature:

Have fun,

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

Options: ReplyQuote
Re: PHP Doesn't Display WAMP5
Posted by: tbohon (---.direcpc.com)
Date: July 25, 2007 04:38AM

Well isn't that a silly 'misteak' for me to make ... :-(

Thanks for the quick reply - appreciate it!

Tom

Options: ReplyQuote


Sorry, only registered users may post in this forum.