Re: execute a script on access to a directory
| From: | Enrique Vadillo | Date: | Fri, 07 Sep 2001 19:25:10 +0000 |
| Subject: | Re: execute a script on access to a directory | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-66451@lists.php.net to get a copy of this message | ||
Nope, i'm not talking about a directory containing exclusively
PHP scripts, in that case i would've prepended a php script
to the directory and we're done, but no, i am talking about
access to a directory containing files of any kind. see?
Thanks for the help anyway, any better suggestions?
Enrique-
From: "Jason Bell" <jbell@barkingrat.com> To: "Enrique Vadillo" <enrique_vadillo@hotmail.com>, "PHP Users" <php-general@lists.php.net> Subject: Re: [PHP] execute a script on access to a directory Date: Fri, 7 Sep 2001 12:12:58 -0700 You could always add an include() for every page under the /go directory. Simplest way that I can think of. ----- Original Message ----- From: "Enrique Vadillo" <enrique_vadillo@hotmail.com> To: <php-general@lists.php.net> Sent: Friday, September 07, 2001 12:09 PM Subject: [PHP] execute a script on access to a directory Hi, I would like to know how i can force a PHP script to be executed everytime a certain directory is accessed, for example in http://domain.com/go/getit the presence of the /go/ directory would force a PHP script to be executed prior to any operation. Do i need to play with rewriting urls in Apache or is there any other cleaner method (that would not require rewriting URLs) to achieve this? i'd hate to have to rewrite URLs... thanks. Enrique-_________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp