Page 1 of 1

Code output problem using wamp server

Posted: Thu Oct 27, 2011 12:30 am
by abacus_new
I am trying to learn php. I have installed wamp server and wrote a simple code for testing.
The code file is saved in \wamp\www folder. The problem is when I run localhost it anybody shows my
project list which is nothing but the code I have written. All tags are there.
If anybody can give suggestions that will be great.

Thank you

Re: Code output problem using wamp server

Posted: Thu Oct 27, 2011 12:44 pm
by manohoo
Create a folder "test" in c:\wamp\www and put your index.php file there.
index.php

Code: Select all

<?php echo "Hello world!"; ?>
When you go to http://localhost you will see a test folder, click on it and it will execute c:\wamp\www\test\index.php