PHP not working on WAMP 1.7.3
Posted by: ta5na (---.mmu.ac.uk)
Date: October 04, 2007 04:03PM

Hi,

My PHP scripts are not working neither, i have installed WAMP and i suppose everything else works although not tested mysql.

I'm new to PHP and WAMP. My [localhost] works and i have saved all my work onto d:/wamp/www/, as i have checked the php settings and its the same location.

Please help, if someone has a contact number that they dont mind to be contacted by it would be alot more preferable.

Thanks,
Mitesh Tanna

Options: ReplyQuote
Re: PHP not working on WAMP 1.7.3
Posted by: blepore (---.rochester.res.rr.com)
Date: October 05, 2007 03:19PM

I'm going to guess your scripts start with <? and not <?php. If you view source, you probably see your PHP code being output to the browser. You need to enable ASP tags by clicking on the option under PHP settings. You may have to restart apache after this, I'm not 100% sure on that.

Honestly, I think this setting should be enabled by default but that is just me.


Options: ReplyQuote
Re: PHP not working on WAMP 1.7.3
Posted by: ta5na (---.lei3.cable.ntl.com)
Date: October 05, 2007 04:00PM

Yes mate,

I have done and the echo() scripts will work such as hello.php file:

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

Although when i try using scripts like this:

<html>
<body>

Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old.

</body>
</html>

and alot of other scripts dont work, i think the html works but it doesn't read the php scripts. All services are active and i have tried it on another operating system i still get same issues.

I get a blank pages and they dont work, please help.

Thanks,
Mitesh Tanna

Options: ReplyQuote


Sorry, only registered users may post in this forum.