Page 1 of 1

PHP not working (XAMPP INSTALLATION)

PostPosted: 16. June 2009 14:58
by gabriel_marc
I have installed XAMP (basic package) using the installer, which I downloaded from: http://www.apachefriends.org/en/xampp-windows.html

I´m using Xindows XP 5.1.26 and expected the installation to be fully automated.

However, after an apparent successful installation, I checked if PHP was working by opening a simple PHP file using Mozilla: C:/xampp/htdocs/test.php


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Tough first script</title>
</head>
<body>
<h1>The very first script</h1>
<p>
This is the first script!
</p>

<p>
<?php

echo "This is PHP code";
?>
</p>


</body>
</html>

THE PROBLEM:
Since "This is PHP code" does not appear, PHP is not recognizing PHP code.

QUESTION:
What configurations should I check/change to make sure that my browser is able to recognize PHP code?

Re: PHP not working (XAMPP INSTALLATION)

PostPosted: 16. June 2009 15:16
by Wiedmann

Re: PHP not working (XAMPP INSTALLATION)

PostPosted: 16. June 2009 15:17
by Mori_Rafa
Have you installed the new mozilla Firefox update v3.0.11 ?

I have too the problem that php file not more works on Mozilla or IE, since new update from Firefox! :/

Re: PHP not working (XAMPP INSTALLATION)

PostPosted: 16. June 2009 15:39
by gabriel_marc
Thanks Wiedmann! Great help!

By following the steps in "* QUICK INSTALLATION:" in the file C:\xampp\readme_en.txt, my browser started recognizing PHP.


Re: PHP not working (XAMPP INSTALLATION)

PostPosted: 15. July 2009 14:49
by classicarta
I have spent the past 3 days trying to solve the problem, especially since downloading the new version of xampp.Always blank pages.
I tried many of the solutions as listed, and even reinstalled version 1.6- Nothing!!!

I had been using Firefox, which has probably been updated recently-----It used to work.

SO I tried using Google Chrome, and HEY PRESTO it works. GOOGLE CHROME WORKS.

I am operating with Windows Ultimate.

I hope this might help youall