Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,

I have installed and cofigured PHP,Msql and Apache succesfully.

However I am having problems in running php files.

I have made a directory:

C:\server\www\myserver.dev\public_html


and place all the php files in this but when I open the files in browser it shows the whole code instead of the desired result.

I have installed all the php.mysql and apache in this particular folder.

C:\server


I'm very pleased if any one can please help me out.

Thanks
Posted
Updated 23-Jul-10 3:30am
v3
Comments
Dalek Dave 23-Jul-10 9:30am    
Edited for Readability, Spelling and Syntax

You have to call the php pages from the localhost webserver using the IIS or by WAMP in the windows
You must place your all php pages in the www folder of the wamp in the windows and htdocs in linux.
then start your local host and go for the folder where your page is situated.
This will solve your problem
 
Share this answer
 
Comments
Dalek Dave 23-Jul-10 9:31am    
Yes, agreed, if they are not visible they cannot be accessed.
a good tutorial installing Apach,mysql and php ..if you don't want to install wamp or xaamp
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900