php not working
Posted by: usmanbssi@gmail.com (---.dsl.lsan03.sbcglobal.net)
Date: August 24, 2009 12:54AM

i am really new to wamp so please forgive my stupidity. Every time i put a php file in the directory and try to open it the php isnt working properly i dont know why. i am not even sure if i am putting my files in the right spott and accessing them correctly. what i am doing is putting them in the www directory and then from that directory, i open them but it is not working properly.

Options: ReplyQuote
Re: php not working
Posted by: toumimi (84.6.111.---)
Date: August 24, 2009 01:03AM

That's not the right way to read php file.

You should create a folder (ex: test) under www (your public folder).
It will be your project folder so you can create files in it.
By doing this, your project (test) will be listed on to wamp homepage.

By clicking on your project link, it will show a list of your files.
To automatically launch a file when opening your project, you should create an index.php file which will be read first.

Don't forget to use <?php ?> and not <? ?> (short open tags)

Wamp homepage can be accessed from your browser (ex: firefox) on url 'http://localhost/'
There is a link in wamp menu name Localhost.

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: php not working
Posted by: yfastud (Moderator)
Date: August 24, 2009 04:57PM


Options: ReplyQuote


Sorry, only registered users may post in this forum.