Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread Jochem Maas
Richard Lynch wrote: phpninja wrote: I think all php functions are case sensitive and must be all lowercase. try changing "IsSet" to "isset" and give it a run. I im not 100% sure because i always type every function in php lowercase and keep it the same throughout the application so i dont ever hav

Re: [PHP] Re: Authentication fails - SOLVED

2005-03-04 Thread John Swartzentruber
On 3/4/2005 2:02 PM Richard Lynch wrote: John Swartzentruber wrote: I stripped down my original script until it started receiving POST data, then I kept modifying it until I figured out where the problem was. I found it, but I'm still as clueless as every. To summarize: I have a form that posts to

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread Richard Lynch
phpninja wrote: > I think all php functions are case sensitive and must be all > lowercase. try changing "IsSet" to "isset" and give it a run. I im not > 100% sure because i always type every function in php lowercase and > keep it the same throughout the application so i dont ever have to > worry

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread dan
John Swartzentruber wrote: On 3/4/2005 2:23 PM Dan wrote: phpninja wrote: I think all php functions are case sensitive and must be all lowercase. try changing "IsSet" to "isset" and give it a run. I im not 100% sure because i always type every function in php lowercase and keep it the same througho

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread John Swartzentruber
On 3/4/2005 2:02 PM Richard Lynch wrote: John Swartzentruber wrote: I stripped down my original script until it started receiving POST data, then I kept modifying it until I figured out where the problem was. I found it, but I'm still as clueless as every. To summarize: I have a form that posts to

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread John Swartzentruber
On 3/4/2005 2:23 PM Dan wrote: phpninja wrote: I think all php functions are case sensitive and must be all lowercase. try changing "IsSet" to "isset" and give it a run. I im not 100% sure because i always type every function in php lowercase and keep it the same throughout the application so i don

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread dan
have to worry about that. Just a thought. -phpninja -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 11:03 AM To: John Swartzentruber Cc: php-general@lists.php.net Subject: Re: [PHP] Re: Authentication fails - problem line found John Swartzentrub

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread phpninja
y about that. Just a thought. -phpninja -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 11:03 AM To: John Swartzentruber Cc: php-general@lists.php.net Subject: Re: [PHP] Re: Authentication fails - problem line found John Swartzentruber wrote:

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread Richard Lynch
John Swartzentruber wrote: > I stripped down my original script until it started receiving POST data, > then I kept modifying it until I figured out where the problem was. I > found it, but I'm still as clueless as every. > > To summarize: I have a form that posts to the same script that contains >

Re: [PHP] Re: Authentication fails - problem line found

2005-03-03 Thread John Swartzentruber
I stripped down my original script until it started receiving POST data, then I kept modifying it until I figured out where the problem was. I found it, but I'm still as clueless as every. To summarize: I have a form that posts to the same script that contains the form. In its original state, w

Re: [PHP] Re: Authentication fails

2005-03-03 Thread John Swartzentruber
On 3/2/2005 5:21 PM Richard Lynch wrote: John Swartzentruber wrote: ServerName john.swartzentruber.us ServerAdmin webmasXXXtzentruber.us DocumentRoot "/var/www/vhosts/swartzentruber.us/john/html" AllowOverride AuthConfig Options Indexes Includes FollowSymLinks

Re: [PHP] Re: Authentication fails

2005-03-02 Thread Richard Lynch
John Swartzentruber wrote: > > ServerName john.swartzentruber.us > ServerAdmin webmasXXXtzentruber.us > DocumentRoot "/var/www/vhosts/swartzentruber.us/john/html" > > > AllowOverride AuthConfig > Options Indexes Includes FollowSymLinks > Order al

Re: [PHP] Re: Authentication fails

2005-03-02 Thread John Swartzentruber
On 3/2/2005 2:29 PM Richard Lynch wrote: I've got some more information and I hope someone can help me figure out the problem. I changed my original PHP program so that the form action script is a different script. In that file, I just do a var_dump on $_POST and $_SERVER. When I do that, it looks

Re: [PHP] Re: Authentication fails

2005-03-02 Thread Richard Lynch
> I've got some more information and I hope someone can help me figure out > the problem. I changed my original PHP program so that the form action > script is a different script. In that file, I just do a var_dump on > $_POST and $_SERVER. > > When I do that, it looks like all of the data comes th

Re: [PHP] Re: Authentication fails

2005-03-02 Thread Richard Lynch
>> On the other hand, when the form action script is the *same* script that >> contains the form, when I do the same var_dumps, the data does *not* >> have any $_POST data. Also, the _SERVER[REQUEST_METHOD] is "GET", not >> "POST" in this instance. > > My suspicion was that this was what had happen

Re: [PHP] Re: authentication using /etc/passwd

2004-02-05 Thread Jason Wong
On Friday 06 February 2004 01:13, Jas wrote: > Adam Williams wrote: > > Hi, is there a way to authenticate a username/password someone enters in > > a form with what is in /etc/passwd? > Yep, do a search on .htaccess from http://google.com I'm afraid you may be sending the OP on a wild goose chas

[PHP] [ERR] RE: [PHP] Re: authentication comparing to /etc/passwd

2004-02-04 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) --- Begin Message --- John Taylor-Johnston wrote: > if($PHP_AUTH_USER != "user1") || ($PHP_AUTH_PW != "password") > > ... or somehting like that. I can't find it in the manual, but it is > there someplace. >

RE: [PHP] Re: authentication comparing to /etc/passwd

2004-02-04 Thread Burhan Khalid
John Taylor-Johnston wrote: > if($PHP_AUTH_USER != "user1") || ($PHP_AUTH_PW != "password") > > ... or somehting like that. I can't find it in the manual, but it is > there someplace. > > Adam Williams wrote: > >> Hi, is there a PHP function or some sort of way to have a user enter >> their use

Re: [PHP] Re: Authentication with PHP and HTTP

2002-11-14 Thread BigDog
Just never do it period...that is the best habit to have... That is poor coding on the programmers part... On Fri, 2002-11-15 at 00:59, Maxim Maletsky wrote: > using this method for a production environment is incredibly vulnerable. > Just think of having a link on that page to some other site (o

Re: [PHP] Re: Authentication with PHP and HTTP

2002-11-14 Thread Maxim Maletsky
using this method for a production environment is incredibly vulnerable. Just think of having a link on that page to some other site (or even having a third-party banner displayed) on which there is a hit counter (and on 90% there are) those can simply read the link in their logs. Never ever use

Re: [PHP] Re: Authentication with PHP and HTTP

2002-11-05 Thread ed
I've tried both methods without success. header("Location: http://(user):(pass)@www.mysite.com"); does the transfer but I still get prompted for a username and password by Apache readfile("http://(user):(pass)@www.mysite.com"); brings a warning message. Warning: readfile("http://...@;www.mysite

Re: [PHP] Re: Authentication with PHP and HTTP

2002-11-05 Thread Silver
very true :) thx - I will keep that in mind... "Chris Shiflett" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:3DC71CBE.2050703@;php.net... > You can "hide" URLs by fetching them with one of your own PHP scripts: > > > readfile("http://user:password@;www.site.com/"); > ?> > > I think it might

Re: [PHP] Re: Authentication with PHP and HTTP

2002-11-04 Thread Chris Shiflett
You can "hide" URLs by fetching them with one of your own PHP scripts: http://user:password@;www.site.com/"); ?> I think it might be at least better than frames. :-) Chris silver wrote: you could use this URL syntax: http://user:password@;www.site.com to automatically log your user in to the

Re: [PHP] Re: Authentication Options: Was AddType x-httpd-php ...

2001-11-21 Thread Fred
I cannot quote any statistics for you, but I think I can answer your question anyway. When you use htaccess along with htpassword or authmysql, everytime a person requests a page in a protected dirtectory apache has to access the htaccess file, determine the type of authentication to use and then

Re: [PHP] Re: Authentication Options: Was AddType x-httpd-php ...

2001-11-21 Thread Jeff Hill
Well, your the expert, so I'll look into this further, but do you have any statistics, or a guess, as to the load auto_prepending an entire site would add to a server? I've always been under the impression that adding PHP to every page will add significant load. I'm not familiar enough with sess

RE: [PHP] Re: authentication help

2001-10-25 Thread Martin Towell
If you wanted to check for more than one username/password set, then extend this line if ($userid == "somename" && $password == "somepassword") { to something like if (($userid == "somename1" && $password == "somepassword1") || ($userid == "somename2" && $password == "somepassword2") ||

Re: [PHP] Re: authentication

2001-08-27 Thread Andrey Hristov
AIL PROTECTED]> To: "Gert Mellak" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 9:27 PM Subject: Re: [PHP] Re: authentication > It seems like there would be several problems with doing it this way. > The most obvious is what happens whe