Page 1 of 1

Opening a file from within a folder

Posted: Thu Aug 26, 2004 3:24 am
by bradles
Not sure if this is the right place to ask this question so I apologise if that is the case.

I have Apache and PHP installed on my local win2k pc. If I want to run a html/php file on my local hard drive the web browser must be pointed to http://localhost/foldername/filename.html.

I cannot just right click a php/html file in a folder and choose open with internet explorer as it does not process the php.

My question is: does anyone know how I can set it up so I can just right click a file and open it and have it run the php server?

Thanks.

Brad

Posted: Mon Sep 20, 2004 1:46 pm
by ldomingues
You can register the PHP.exe to run PHP files (double-click a php file) and select the php.exe on the popup window.

That will run the PHP file and output in command-line.

To run it at the server I think you need to create a program that will redirect the browser to the correct URL.