Reply to Re: PHP on IIS with basic authentication

Your name:

Reply:


Posted by Heiko Richler on 08/02/07 15:04

Joff wrote:
> I'm running PHP on IIS and need to set basic authentication on a
> particular folder, e.g http://domain.com/private/
> I've set the user on the server and assigned permissions to the
> folder.
>
> When requesting files within the folder, I get the login/password
> prompt and entering the correct credentials gives me the file, except
> for .php files.
>
> The .php file is as basic as they come with just <?php echo "Hello
> world"; ?> as the contents.
>
> http://domain.com/private/test.txt works perfectly, however
> http://domain.com/private/test.php denies access, giving only:
> "Unauthorized
> Access is denied due to invalid credentials."
>
> I've tried giving the user full permissions; I've ensured that
> Application Settings configuration within IIS Manager properties >
> Home Directory, allows PHP files.
>
>
> Any other suggestions?

What you describe sounds like windows integrated authentication not like
basic authentication. In this cases the user login on needs access to
the file on the server. If it is what you mean, the user may even need
the rights to execute that .php file as well as the right to execute php
itself.

Heiko

[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

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