Forum Moderators: phranque

Message Too Old, No Replies

execute any file when accessing files on server

         

enil

10:55 am on Dec 12, 2006 (gmt 0)

10+ Year Member



Hi to all,

i need to execute any type of file with some commands in it when accessing files on server.

suppose, if i access one folder named 'temp' on my server, then the file which i want to execute should be run first.

anyone knows this stuff then pls help me ASAP

Thanks
-ENIL

jdMorgan

3:17 pm on Dec 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Several of the the techniques described in this recent thread [webmasterworld.com] are applicable here.

Jim

jd01

9:56 pm on Dec 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Another way to accomplish 'essentially the same effect' is to rewrite everything to /the-file-to-execute.ext and 'include' the 'correct page', based on the 'request_uri', after the execution of the script.

Justin