Run a file through php when an application requests it

Author Topic: Run a file through php when an application requests it  (Read 2570 times)

Offline manvbfTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 1
  • Posts: 123
  • Karma: 1
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?


Related Topics

  Subject / Started by Replies Last post
2 Replies
Last post 08-26-2011, 11:23:55
by takeshiro
0 Replies
Last post 11-04-2011, 04:02:25
by Walalayo
2 Replies
Last post 04-09-2012, 01:00:15
by Kim_Smith
4 Replies
Last post 10-17-2014, 01:02:14
by kiranshahweb
0 Replies
Last post 08-26-2016, 03:54:49
by beingchinmay