Page 1 of 1

PHP code not being executed

PostPosted: 07. January 2011 13:19
by Fabien117
Hi all,

The XAMPP server is running on Windows 7 and the apache service is also started. When I type [localhost], I get the WAMP start up page, however the php script is not being executed by the server (http://localhost/hello.php).

For example the script below:

<html>
<body>
<p>This is standard HTML.</p>
<?php
echo "Hello World";
?>
</body>
</html>

The result I am getting on the browser is ' This is standard HTML ' and the 'Hello World' is not being executed.

Thanks for your help,

Fabien

Re: PHP code not being executed

PostPosted: 07. January 2011 13:29
by Sharley
Fabien117 wrote:When I type [localhost], I get the WAMP start up page
Did you have WAMP on your computer before you installed XAMPP?

I just tested your code and it works fine on my XAMPP version 1.7.3 installation.

Check your \xampp\apache\logs\error.log file for any clues.

Type http://localhost/xampp in your browser and when the XAMPP page loads look for the menu item phpinfo() and then click on it.

When the phpinfo page loads find this line:
Loaded Configuration File
What path does it show to the php.ini file being used?