Forum Moderators: phranque

Message Too Old, No Replies

directive to run PHP script from .htaccess

is that possible?

         

smallcompany

5:01 am on May 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sometimes a question rings a bell on multiple doors, like this one that rings both PHP and Apache. I posted it in PHP with no concrete answer, so here it is, under Apache:

[webmasterworld.com...]

Can I make a call to PHP script (file) from within .htaccess?

If not directly (like “run this now and forget”), can I do some dummy rewrite which will cause it to run, or… what?

Thanks

coopster

12:36 pm on May 29, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Why not try and use the direction offered in the other thread,
auto_prepend_file
. You can use that in your .htaccess file.

jdMorgan

12:39 pm on May 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or, if you have server configuration-level access, see RewriteMap -- Not available in .htaccess.

Jim

smallcompany

5:28 pm on May 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



auto_prepend_file

That has come after I posted it here. I will check it out.

RewriteMap

Will do.

Thanks