Reply to Re: Missing authentication variables PHP_AUTH_USER etc.

Your name:

Reply:


Posted by Bent Stigsen on 12/09/26 11:26

Bernard Higonnet wrote:
[snip]
> There is a "AuthUserFile" option in the config file. This I know because
> it's there, and because it does ask for a password and that works as it
> should. I thought by posting the server-info this would be better than
> showing the config file lines, but server-info doesn't show the file,
> perhaps because showing it is bad from a security point of view...?

Ok, it makes sense that it should work since the request gets passed
along to the PHP-interpreter.

Just to confirm that PHP gets the information it needs, try:
<?php
print_r(apache_request_headers());
?>

Verify the presence and content of the Authorization-header. Its
content should be something like "Basic Zm9vOmZvby4u", where the
gibberish is base64 encoded "user:pass".


/Bent

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация