Forum Moderators: phranque

Message Too Old, No Replies

Run a file through php when an application requests it

         

Endeavor

11:14 pm on May 3, 2005 (gmt 0)

10+ Year Member



I have a program that requests an .htm page. I wanted to make this a dynamic php page, so I added .htm extention to the list of extentions that my apache server will redirect to php. Also, this file is not in the standard document root (apache/htdocs). So, I used aliases.

But now I have a problem...the application does not request the file through my server. Because the file and the application is on the same computer, the application requests the file without ever going through my server. It's just as if I opened the .htm file while browsing my hard drive.

Is there a way to make it so that this specific file has to go through the server before anyone accesses it?

jd01

9:30 am on May 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Endeavor,

The best answer I can give you is... I don't think so. The only way I can think to do this is if you have server software installed on your computer and access it using a http 'loop' or 'localhost' maybe someone with more creativity or experience can think of a way to force a handler on a local system, but I can't think of one.

Sorry this doesn't help much.

Justin