954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

.php does not run as a script

Hi All,

I have a problem.

Scripts in .php pages don't run but the same code runs in the .html files

I have tested apache and php using the command prompt. Both are fine.

I am running apache 2.0.x with PHP 5.x on Windows XP.

When I write the code for displaying the phpinfo() in info.php file and try to view the page as using the url http://localhost/info.php it gives me error "page not available."

However if I write the same code in a .html file and view the page in a browser it shows me the server information.

Please help ?

neelu7779
Newbie Poster
2 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

hi,
create a virtual web folder and write all ur scripts there
type inetmgr in cmd you will get iis in that you will see websites icon and default website icon when u click on website create a folder (like www) there and create a same folder in d-drive
write all ur scripts in that folder and finally in browser the url will be like (localhost/www/)
i think this might fix ur problem:)

praveen_dusari
Posting Whiz in Training
204 posts since Jun 2008
Reputation Points: 21
Solved Threads: 29
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You