开发者

Can one create Apache hooks with PHP?

开发者 https://www.devze.com 2022-12-08 19:06 出处:网络
I have googled the topic for a while but haven\'t found what I\'m looking for...开发者_运维百科

I have googled the topic for a while but haven't found what I'm looking for...开发者_运维百科

Is there a mod for PHP that allows it to act much like mod_wsgi or mod_python so that one can create Apache hooks using PHP?

For example an equivalent to WSGIAccesScript?

Thank you


Only if you use a FASTCGI module such as mod_fastcgi or mod_fcgid which implements access checker hook defined as part of FASTCGI. Obviously, you need be running PHP via FASTCGI.

For mod_fcgid see:

http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidaccesschecker

For mod_fastcgi see:

http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiAccessChecker

0

精彩评论

暂无评论...
验证码 换一张
取 消