Re: [PHP] 403 Forbidden



Jim Lucas wrote:
Roman Neuhauser wrote:
# abhijitraje@xxxxxxxxxxx / 2006-12-29 12:17:12 +0530:
When I try to run any php script on apache I get a error
"Authorization required 403 Forbidden". I don't get this error on
IIS. I am using Windows XP professional please help. I am using
Apache 2.2.1

That's a problem with your apache configuration, unrelated to PHP.
The Apache manual is at http://httpd.apache.org/docs/2.2/

correct/incorrect

there could be a line like this in his php code somewhere.

header('WWW-Authenticate: Basic realm="Someplace"');
header('HTTP/1.0 401 Unauthorized');

and if something correct is not entered, they will recieve the 403 Error

So, it could be a PHP thing, but it IS more then likely an Apache issue

Jim

spoke too soon. Never mind
.



Relevant Pages

  • RE: NT/2000 vs Unix based Web Servers
    ... I really don't see how this is any different from Windows. ... > many as IIS, ... Apache holds ... and I pointed out that Apache support really is ...
    (Security-Basics)
  • Re: Windows XP and IIS with .Net
    ... Yes, you could download Apache, but if you are only writing desktop you ... else that requires a webserver it requires IIS. ... need to move to Windows 2000 or Windows XP ... David Dietz -- IIS Technical Lead ...
    (microsoft.public.inetserver.iis.security)
  • Re: IIS Vs Apache on Windows 2003
    ... is better IIS or apache in Windows 2003 Server ... able to take advantage of insider knowledge, IIS would be faster. ... all these servers were either devel servers or low-traffic ones. ...
    (comp.lang.php)
  • Re: Security in IIS to where ???
    ... IIS security is not a nightmare. ... Neither IIS nor Apache nor Linux nor Windows is secure in the default ...
    (microsoft.public.inetserver.iis.security)
  • Re: Problem with compile_predicates/1 under SWI
    ... both IIS and Apache (under Windows) accepted my headers (that I ...
    (comp.lang.prolog)