in ASP there's a file called global.asa which runs whenever a user enters
the directory it sits in.
Perhaps PHP can do something similar?
> -----Original Message-----
> From: Ben-Nes Michael [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 11, 2000 3:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: apache/ force file proccess
>
>
> What i had in mind
>
> Is when surfer get into some directory (lets say admin),
> before every request
> a PHP script which exist in file.php must be served.
>
> Moshe Zadka wrote:
>
> > On Wed, 11 Oct 2000, Ben-Nes Michael wrote:
> >
> > > Hi
> > >
> > > Any one know how to tell the apache to process specific
> file before each
> > > file is processed ?
> >
> > What do you mean by "process"? If you're writing a C apache module,
> > and you want to do something before every file serve, (or any other
> > serve),
> > just regiseter as handler for Location /, do your thing and return
> > DECLINED. (Same in mod_perl and Perl module, or mod_snake
> and a Python
> > moduel)
> >
> > If you mean "Append to each file process", it's not possible in any
> > straightforward way, because apache doesn't support
> filtering. Perhaps
> > mod_proxy and virtual hosts can do that.
> >
> > I think you mean the second one.
> >
> > Ifit's enough to deal with static files, just register to everything
> > at the beginning (so others can override you), and handle
> the request
> > yourself, using the Apache API. This can be done in C, Perl
> or Python.
> > I think it is also possible to do it in Tcl, but I'm not sure.
> >
> > --
> > Moshe Zadka <[EMAIL PROTECTED]>
> > There is no IGLU cabal.
> > http://advogato.org/person/moshez
> >
> > =================================================================
> > To unsubscribe, send mail to [EMAIL PROTECTED] with
> > the word "unsubscribe" in the message body, e.g., run the command
> > echo unsubscribe | mail [EMAIL PROTECTED]
>
> --
> --------------------------
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-6-6925757
> Fax: 972-6-6925858
> http://www.canaan.co.il
> --------------------------
>
>
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]