PHP not working (XAMPP INSTALLATION)

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

PHP not working (XAMPP INSTALLATION)

Postby gabriel_marc » 16. June 2009 14:58

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?
gabriel_marc
 
Posts: 2
Joined: 16. June 2009 14:44

Re: PHP not working (XAMPP INSTALLATION)

Postby Wiedmann » 16. June 2009 15:16

Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: PHP not working (XAMPP INSTALLATION)

Postby Mori_Rafa » 16. June 2009 15:17

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! :/
Mori_Rafa
 
Posts: 12
Joined: 15. June 2009 06:07

Re: PHP not working (XAMPP INSTALLATION)

Postby gabriel_marc » 16. June 2009 15:39

Thanks Wiedmann! Great help!

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

gabriel_marc
 
Posts: 2
Joined: 16. June 2009 14:44

Re: PHP not working (XAMPP INSTALLATION)

Postby classicarta » 15. July 2009 14:49

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
classicarta
 
Posts: 2
Joined: 15. July 2009 14:36


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 139 guests