RE: [PHP-WIN] URGENT - Enabling mcrypt() in PHP 4.3.3 on Windows XP (windows installer

2004-02-01 Thread Svensson, B.A.T. (HKG)

> Please reply ASAP, with a step-by-step guide

1) RTFM.
2) done.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] User authentication problem

2004-02-01 Thread Symeon Charalabides

Hi all,

I've always utilized basic user authentication by including the following code in 
my protected files:

if ($_SERVER['PHP_AUTH_USER']!='name' || $_SERVER['PHP_AUTH_PW']!='password')
{
header("WWW-Authenticate: Basic realm=\"Website administration\"");
header("HTTP/1.0 401 Unauthorised");
exit;
}

Now, suddenly this code won't work on WinXP on any browser, under Apache 1.3 with 
PHP 4.3.3 running as a module. The worst part is that it won't run on my ISP 
either, which runs PHP 4.3.4 on Linux machines. What really baffles me is that 
the same code snippet on my earlier websites runs perfectly. It's just the last 
one I'm making it won't run on, although I upload exactly the same file that runs 
on the others.

It sounds like something very very obvious is wrong, which makes me feel very 
very silly for not seeing it. Can it be affected by the structure of the rest of 
the website? Any suggestions?

Thanks in advance,

Symeon Charalabides (cosmopolite trainee)
-
http://systasis.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



php-windows Digest 1 Feb 2004 18:58:06 -0000 Issue 2103

2004-02-01 Thread php-windows-digest-help

php-windows Digest 1 Feb 2004 18:58:06 - Issue 2103

Topics (messages 22690 through 22691):

Re: URGENT - Enabling mcrypt() in PHP 4.3.3 on Windows XP (windows installer
22690 by: Svensson, B.A.T. (HKG)

User authentication problem
22691 by: Symeon Charalabides

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---

> Please reply ASAP, with a step-by-step guide

1) RTFM.
2) done.
--- End Message ---
--- Begin Message ---

Hi all,

I've always utilized basic user authentication by including the following code in 
my protected files:

if ($_SERVER['PHP_AUTH_USER']!='name' || $_SERVER['PHP_AUTH_PW']!='password')
{
header("WWW-Authenticate: Basic realm=\"Website administration\"");
header("HTTP/1.0 401 Unauthorised");
exit;
}

Now, suddenly this code won't work on WinXP on any browser, under Apache 1.3 with 
PHP 4.3.3 running as a module. The worst part is that it won't run on my ISP 
either, which runs PHP 4.3.4 on Linux machines. What really baffles me is that 
the same code snippet on my earlier websites runs perfectly. It's just the last 
one I'm making it won't run on, although I upload exactly the same file that runs 
on the others.

It sounds like something very very obvious is wrong, which makes me feel very 
very silly for not seeing it. Can it be affected by the structure of the rest of 
the website? Any suggestions?

Thanks in advance,

Symeon Charalabides (cosmopolite trainee)
-
http://systasis.com
--- End Message ---


Re: [PHP-WIN] User authentication problem

2004-02-01 Thread Meteorlet
Symeon Charalabides,Hello!

I think your code is absolutely right,because I used it like that before.
I don't know what happened to it,but I could give you some suggestions:

1.Make sure if there is any error message when an error occurs.Because other
error codes will result in halting the program.
2.Make sure if the header function works fine.

That's all I can.

Meteorlet Woody

=== 2004-02-02 04:56:52 ===

>
>Hi all,
>
>I've always utilized basic user authentication by including the following code in 
>my protected files:
>
>if ($_SERVER['PHP_AUTH_USER']!='name' || $_SERVER['PHP_AUTH_PW']!='password')
>{
>   header("WWW-Authenticate: Basic realm=\"Website administration\"");
>   header("HTTP/1.0 401 Unauthorised");
>   exit;
>}
>
>Now, suddenly this code won't work on WinXP on any browser, under Apache 1.3 with 
>PHP 4.3.3 running as a module. The worst part is that it won't run on my ISP 
>either, which runs PHP 4.3.4 on Linux machines. What really baffles me is that 
>the same code snippet on my earlier websites runs perfectly. It's just the last 
>one I'm making it won't run on, although I upload exactly the same file that runs 
>on the others.
>
>It sounds like something very very obvious is wrong, which makes me feel very 
>very silly for not seeing it. Can it be affected by the structure of the rest of 
>the website? Any suggestions?
>
>Thanks in advance,
>
>Symeon Charalabides (cosmopolite trainee)
>-
>http://systasis.com
>
>-- 
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>


RE: [PHP-WIN] User authentication problem

2004-02-01 Thread Svensson, B.A.T. (HKG)
What do mean with "wont work"? Does the if expression
allway evaluate to false, or what?

By the way, you might like to check out:

http://nl.php.net/manual/en/security.registerglobals.php

-Original Message-
From: Symeon Charalabides
To: [EMAIL PROTECTED]
Sent: 2004-02-01 21:56
Subject: [PHP-WIN] User authentication problem


Hi all,

I've always utilized basic user authentication by including the
following code in  my protected files:

if ($_SERVER['PHP_AUTH_USER']!='name' ||
$_SERVER['PHP_AUTH_PW']!='password')
{
header("WWW-Authenticate: Basic realm=\"Website
administration\"");
header("HTTP/1.0 401 Unauthorised");
exit;
}

Now, suddenly this code won't work on WinXP on any browser, under Apache
1.3 with PHP 4.3.3 running as a module. The worst part is that it won't run
on my ISP either, which runs PHP 4.3.4 on Linux machines. What really
baffles me is that the same code snippet on my earlier websites runs
perfectly. It's just the last  one I'm making it won't run on, although I
upload exactly the same file that runs  on the others.

It sounds like something very very obvious is wrong, which makes me feel
very very silly for not seeing it. Can it be affected by the structure of
the rest of  the website? Any suggestions?

Thanks in advance,

Symeon Charalabides (cosmopolite trainee)
-
http://systasis.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php