Re: [PHP] Apache SetHandler

2003-04-05 Thread Zoff
Tom Rogers wrote:
Hi,

Saturday, April 5, 2003, 6:29:50 AM, you wrote:
Z Hi !
Z what i want is to write something in PHP which does authentication
Z (not basic auth but my own DB driven stuff) and after that something
Z apache resumes normal operation so that whatever is served afterwards
Z does not need to know anything of the auth process.
You would probably be better off using an apache module for this.
Something like Mod Auth MySQL It would be easy to make the module
set a few enviroment variables if you need to pass info to php.
yeah but my question is:
is it possible to write an apache module in PHP.
or do something real close to that ?
please some answer my question and don't give me something else i could do.
I am not a newbie i know what i need, and i also know what else i could use.
	thanks

	Zoff.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache SetHandler

2003-04-05 Thread Rasmus Lerdorf
This can be done using the apache_hooks sapi module.  Look in
sapi/apache_hooks in the 4.3 sources for details.

-Rasmus

On Sat, 5 Apr 2003, Zoff wrote:

 Tom Rogers wrote:
  Hi,
 
  Saturday, April 5, 2003, 6:29:50 AM, you wrote:
  Z Hi !
 
  Z what i want is to write something in PHP which does authentication
  Z (not basic auth but my own DB driven stuff) and after that something
  Z apache resumes normal operation so that whatever is served afterwards
  Z does not need to know anything of the auth process.
 
  You would probably be better off using an apache module for this.
  Something like Mod Auth MySQL It would be easy to make the module
  set a few enviroment variables if you need to pass info to php.
 

 yeah but my question is:
 is it possible to write an apache module in PHP.
 or do something real close to that ?

 please some answer my question and don't give me something else i could do.
 I am not a newbie i know what i need, and i also know what else i could use.

   thanks

   Zoff.


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache SetHandler

2003-04-04 Thread Zoff
Hi !

what i want is to write something in PHP which does authentication
(not basic auth but my own DB driven stuff) and after that something
apache resumes normal operation so that whatever is served afterwards
does not need to know anything of the auth process.
e.g.:
-- apache -- PHP-script -- apache -- static.html
or:
-- apache -- PHP-script -- apache -- PHP.php
or:
-- apache -- PHP-script -- apache -- perl.pl
or:
-- apache -- PHP-script -- apache -- acrobat.pdf
and all POST or GET data if there should be passed along for forms to work,
or uploads.
so is that possible ?

	Zoff.

Jason Wong wrote:
On Thursday 03 April 2003 22:38, Zoff wrote:


that's not what I want.
I want something where all the POST and GET data gets passed thru
transparently. and where I can serve static and dynamic pages as well.
mod_perl can do this.


In that case I really have no idea what you want. Could you give further 
details on what you're trying to do?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re[2]: [PHP] Apache SetHandler

2003-04-04 Thread Tom Rogers
Hi,

Saturday, April 5, 2003, 6:29:50 AM, you wrote:
Z Hi !

Z what i want is to write something in PHP which does authentication
Z (not basic auth but my own DB driven stuff) and after that something
Z apache resumes normal operation so that whatever is served afterwards
Z does not need to know anything of the auth process.

You would probably be better off using an apache module for this.
Something like Mod Auth MySQL It would be easy to make the module
set a few enviroment variables if you need to pass info to php.

-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache SetHandler

2003-04-03 Thread Zoff
Hi Guys!

ich have a question with apache and mod_perl I can write a Handler in perl
which is called before anything else happens. this allows me to write all sorts of 
auth stuff.
is there something similar in PHP.
e.g.:

in httpd.conf

Directory /foobar
SetHandler MyFoo.php
/Directory
this would really help a lot !

	Zoff.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache SetHandler

2003-04-03 Thread Jason Wong
On Thursday 03 April 2003 17:06, Zoff wrote:

 ich have a question with apache and mod_perl I can write a Handler in perl
 which is called before anything else happens. this allows me to write all
 sorts of auth stuff. is there something similar in PHP.

 e.g.:

 in httpd.conf

 Directory /foobar
 SetHandler MyFoo.php
 /Directory

Have a look at the auto_prepend_file and auto_append_file settings in php.ini. 
Note that you can set these per domain/directory by appropriate entries in 
httpd.conf/.htaccess.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Things equal to nothing else are equal to each other.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache SetHandler

2003-04-03 Thread Zoff
Jason Wong wrote:
On Thursday 03 April 2003 17:06, Zoff wrote:


ich have a question with apache and mod_perl I can write a Handler in perl
which is called before anything else happens. this allows me to write all
sorts of auth stuff. is there something similar in PHP.
e.g.:

in httpd.conf

Directory /foobar
SetHandler MyFoo.php
/Directory
that's not what I want.
I want something where all the POST and GET data gets passed thru transparently.
and where I can serve static and dynamic pages as well.
mod_perl can do this.
	Zoff.

Have a look at the auto_prepend_file and auto_append_file settings in php.ini. 
Note that you can set these per domain/directory by appropriate entries in 
httpd.conf/.htaccess.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache SetHandler

2003-04-03 Thread Jason Wong
On Thursday 03 April 2003 22:38, Zoff wrote:

 that's not what I want.
 I want something where all the POST and GET data gets passed thru
 transparently. and where I can serve static and dynamic pages as well.
 mod_perl can do this.

In that case I really have no idea what you want. Could you give further 
details on what you're trying to do?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Chicago law prohibits eating in a place that is on fire.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache SetHandler

2003-04-03 Thread Erwin Kerk


Zoff wrote:
Hi Guys!

ich have a question with apache and mod_perl I can write a Handler in perl
which is called before anything else happens. this allows me to write 
all sorts of auth stuff.
is there something similar in PHP.

There is a topic in the php manual which describes something similar.

check: http://www.php.net/manual/en/features.file-upload.put-method.php

Maybe something is similar is possible for POST, and for GET your could 
use a rewrite rule in the httpd.conf file



Erwin Kerk
Web Architect


--
 ____
| __|_ ___ __ _(_)_ _
| _|| '_\ V  V / | ' \ @blixem.nl (work)
|___|_|  \_/\_/|_|_||_|@scoutingnederland.nl (private)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php