Code output problem using wamp server

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
abacus_new
Forum Newbie
Posts: 1
Joined: Thu Oct 27, 2011 12:19 am

Code output problem using wamp server

Post 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
User avatar
manohoo
Forum Contributor
Posts: 201
Joined: Wed Dec 23, 2009 12:28 pm

Re: Code output problem using wamp server

Post 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
Post Reply