Where to store php pages in XAMPP?

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

Where to store php pages in XAMPP?

Postby Harbinder Singh » 24. April 2009 15:12

Hi

I am very new to XAMPP and php. I am starting php by writing a basic program in notepad. I just want to know where should I save that page (in which directory) and how I can see that in the IE (just for testing)? What should I type in the IE for that particular page to come on screen?

XAMPP control pannel showing that Apache is running. I have installed latest xampp 1.7.1.

With Regards
User avatar
Harbinder Singh
 
Posts: 5
Joined: 24. April 2009 15:04
Location: INDIA

Re: Where to store php pages in XAMPP?

Postby Wiedmann » 24. April 2009 15:19

I just want to know where should I save that page (in which directory) and how I can see that in the IE (just for testing)? What should I type in the IE for that particular page to come on screen?

Exactly what you can read in "readme_en.txt".
(QUICK INSTALLATION, Step 4)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Where to store php pages in XAMPP?

Postby Harbinder Singh » 24. April 2009 15:27

Thanks for the reply Wiedmann.

Actually I tried that. It gives Error 404. I have made a simple file in notepad. The code is :

<HTML>
<HEAD>
<TITLE>My First PHP Program</TITLE>
</HEAD>
<BODY>
<?php
echo “I’m a lumberjack.”;
?>
</BODY>
</HTML>

Then I save it as test.php in htdocs. Now after that I tried http://localhost/test.php

But I got this error.

Kindly Advice.
User avatar
Harbinder Singh
 
Posts: 5
Joined: 24. April 2009 15:04
Location: INDIA

Re: Where to store php pages in XAMPP?

Postby Wiedmann » 24. April 2009 15:48

I save it as test.php in htdocs. Now after that I tried http://localhost/test.php
--> Error 404

So the filename is not "test.php", or the file is not in the directory "\xampp\htdocs".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Where to store php pages in XAMPP?

Postby Harbinder Singh » 25. April 2009 06:11

Hello Widemann,

Thanks for the reply.

The check.php file is in the htdocs folder. I dont know why its not coming.

Regards
User avatar
Harbinder Singh
 
Posts: 5
Joined: 24. April 2009 15:04
Location: INDIA

Re: Where to store php pages in XAMPP?

Postby Harbinder Singh » 25. April 2009 06:38

In the home page of Xampp when I click status there comes a Deactivated word infront of the php. Mayt b this is the issue? How to activate that? In the xampp control panel i have seen nothing regarding activation of php.

Regards
User avatar
Harbinder Singh
 
Posts: 5
Joined: 24. April 2009 15:04
Location: INDIA


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 86 guests