I need to set up HTTP authentication. I'm lost, I've researched and found the technique and code to validate $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'], and I think I understand that. However I don't understand how to set PHP_AUTH_USER and PHP_AUTH_PW ? I used print-r on $_SERVER and didn't see either? Do I somehow set these in a file somewhere on the server, or do I set using code? asked 29 Mar '13, 11:16 elong |
You need to set those variables in your code. There is an example of how to set them based on HTTP authentication headers here: Fixing Authentication of ownCloud for webfaction Hope that helps! answered 29 Mar '13, 12:29 seanf thanks - I'll try that, it's a little over my head..But just to confirm, HTTP authentication will not work on Webfaction, without a work around? Thanks very much for your help
(29 Mar '13, 13:01)
elong
PHP HTTP authentication works on WebFaction, provided you implement it the correct way, so if you want to call that a work-around, feel free :) Theres an explanation of why it is necessary here: is possible HTTP authentication with PHP?
(29 Mar '13, 13:06)
seanf
|