running php

i have installed apache on my local mechine and installed php but when i try to run a php script from my browser it dispay the code i wrote the way it is instate of giving the result, where did i go wrong.

See the answer I gave here:

http://www.phphelp.com/forum/index.php/topic,15253.new.html#msg49082

If you are accessing your file using file:///C:/xampp etc. then replace all up to htdocs/ with http://localhost/

If you have a project folder in your htdocs called “myproject” you would go to “http://localhost/myproject/index.php” for example.

Sponsor our Newsletter | Privacy Policy | Terms of Service