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 ?

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:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.