Page 1 of 1

Where to store php pages in XAMPP?

PostPosted: 24. April 2009 15:12
by Harbinder Singh
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

Re: Where to store php pages in XAMPP?

PostPosted: 24. April 2009 15:19
by Wiedmann
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)

Re: Where to store php pages in XAMPP?

PostPosted: 24. April 2009 15:27
by Harbinder Singh
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.

Re: Where to store php pages in XAMPP?

PostPosted: 24. April 2009 15:48
by Wiedmann
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".

Re: Where to store php pages in XAMPP?

PostPosted: 25. April 2009 06:11
by Harbinder Singh
Hello Widemann,

Thanks for the reply.

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

Regards

Re: Where to store php pages in XAMPP?

PostPosted: 25. April 2009 06:38
by Harbinder Singh
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