PHP code not being executed

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP code not being executed

Postby Fabien117 » 07. January 2011 13:19

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
Fabien117
 
Posts: 1
Joined: 07. January 2011 13:04

Re: PHP code not being executed

Postby Sharley » 07. January 2011 13:29

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?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 154 guests