Opening a file from within a folder

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
bradles
Forum Commoner
Posts: 89
Joined: Wed Jun 30, 2004 10:40 pm

Opening a file from within a folder

Post 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
ldomingues
Forum Commoner
Posts: 41
Joined: Fri Aug 06, 2004 1:15 pm
Location: Portugal

Post 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.
Post Reply