简体   繁体   中英

Using Digest Authentication with PHP + Apache

im trying to set up DIGEST authentication using PHP & Apache. I have tried doing this using a script i found on the web which gave me an error as it said the method apache_request_headers() didnt exist, which on reading seems that is becuase apache is not set up to pass the headers to php. I tried installing HTTP_Auth using PEAR, and it fails with this error

Fatal error: Call to undefined function getallheaders()

which upon reading is just the same function, just an alias name.

Is there any other way i can implement digest auth? I would use .htacess config but i want to able to reference the user thats logged in via a database and not sure if i can do it that was using .htacess.

Any ideas, or am i stuffed?

Thanks

嗯,我认为问题是因为PHP是在CGI模式下安装的,而不是Apache模块,所以没有标头访问权限。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM