PDA

View Full Version : PHP, associating files with parser


jehosaphat
01-30-02, 00:13
fwiw, I really don't think you can do this. 'cause when you type in "localhost", you're actually sending an HTTP request to the server. When you double click a document in windows, it just opens the document using the associated filetype.

You /might/ try associating the filetype with your webserver, but I doubt that will actually work. Beats a bloody scalp... :)

MattR
01-30-02, 00:17
Originally posted by jehosaphat
fwiw, I really don't think you can do this. 'cause when you type in "localhost", you're actually sending an HTTP request to the server. When you double click a document in windows, it just opens the document using the associated filetype.

You /might/ try associating the filetype with your webserver, but I doubt that will actually work. Beats a bloody scalp... :)

I remember back in my perl days installing perl execuable on my windows system if I assigned perl.exe to .pl files and double-clicked them in explorer perl would go ahead and execute them.

I beleive it was something like perl.exe %s