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

[PHP] Re: Authentication fails

2005-03-02 Thread John Swartzentruber
On 3/2/2005 9:22 AM Jason Barnett wrote: 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 tha

[PHP] Re: Authentication fails

2005-03-02 Thread Jason Barnett
> > 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 come

[PHP] Re: Authentication fails

2005-03-02 Thread John Swartzentruber
On 3/1/2005 3:52 PM John Swartzentruber wrote: On 3/1/2005 2:12 PM Jason Barnett wrote: John Swartzentruber wrote: Somehow my PHP 5.0.3 or something is configured incorrectly. When I try to get past an authentication input, nothing happens. For example, I have phpMyAdmin configured now to use mysql

[PHP] Re: Authentication fails

2005-03-01 Thread John Swartzentruber
On 3/1/2005 2:12 PM Jason Barnett wrote: John Swartzentruber wrote: Somehow my PHP 5.0.3 or something is configured incorrectly. When I try to get past an authentication input, nothing happens. For example, I have phpMyAdmin configured now to use mysqli, but when I enter the username and password,

[PHP] Re: Authentication fails

2005-03-01 Thread Jason Barnett
John Swartzentruber wrote: > Somehow my PHP 5.0.3 or something is configured incorrectly. When I try > to get past an authentication input, nothing happens. For example, I > have phpMyAdmin configured now to use mysqli, but when I enter the > username and password, the screen doesn't change. In pre

[PHP] Re: authentication

2004-12-30 Thread zerof
Ali wrote: Hi everyone... can anyone lead me to a good tutorial on authentication...it wud be good if i can get a one in connection with a database.. thnks If you understand portuguese: http://www.educar.pro.br/ --- zerof -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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] Re: authentication using /etc/passwd

2004-02-05 Thread Jas
Adam Williams wrote: Hi, is there a way to authenticate a username/password someone enters in a form with what is in /etc/passwd? Thanks! Yep, do a search on .htaccess from http://google.com Cheers, jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[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

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

2004-02-03 Thread John Taylor-Johnston
Found this too: You are not authorised to enter the site \n"; exit; } else { if (!($conn=ora_logon("[EMAIL PROTECTED]",$PHP_AUTH_PW))) { Header("WWW-authenticate: basic realm=\"$SID\""); Header("HTTP/1

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

2004-02-03 Thread John Taylor-Johnston
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 > username and password in a form, and compare the

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

[PHP] Re: Authentication with PHP and HTTP

2002-11-04 Thread silver
hi - I'm not quite sure if this will help you, but lets give it a try: you could use this URL syntax: http://user:password@;www.site.com to automatically log your user in to the htaccess protected area. the bad thing about it is that user / password show up in the URL, but you could hide this inf

[PHP] Re: Authentication session problem (php/server implementation?)

2002-07-26 Thread Richard Lynch
>I have a user authentication system using sessions >it checks username and password against a database. >if correct it sets a variable in the session cookie (via $_SESSION) and >redirects to the protected page which checks for that variable. >if the user/pass is wrong it redirects to an error pag

[PHP] Re: Authentication

2002-07-03 Thread Richard Lynch
>On my site, when a user logs in, their password is encrypted using md5() and >the username and encrypted password is then passed from page to page using >hidden form inputs (clicking on a link submits the form using POST). >Does anyone have any comments on this method e.g. security wise? I know I

[PHP] Re: Authentication with sessions - Recommendation and suggestions?

2002-02-14 Thread Christian Blichmann
"Harry Yu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > > I'm trying to setup an authentication process and > sessions to protect some of my pages for valid users > only. The following are what I had in mind: > > [...] Well, looks fine to me, exce

[PHP] Re: Authentication Question

2002-01-16 Thread Bharath Bhushan Lohray
Create another table with info of accounts. Auth_table username(varchar) password(varchar) acno(int) accounts_info_table acno(int) info1 info2() Pass a query == select * from accounts_info_table where acno==$abc == here $abc is the info you extrac

[PHP] Re: Authentication Question

2002-01-16 Thread Bharath Bhushan Lohray
Create another table with info of accounts. Auth_table username(varchar) password(varchar) acno(int) accounts_info_table acno(int) info1 info2() Pass a query == select * from accounts_info_table where acno==$abc == here $abc is the info you extrac

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
($userid == "somename2" && $password == "somepassword2") || ($userid == "somename3" && $password == "somepassword3")) { Martin -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 2:01

[PHP] Re: authentication help

2001-10-25 Thread Gaylen Fraley
Here would be one of many ways. This assumes that login.php and index.php are in the same directory. login.php User Password -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v2.1 Guestbook http://www.gaylenandmargie.com/phpwebsite "Norman Zhang" <[EMAIL PROTE

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

[PHP] Re: authentication

2001-08-27 Thread Gert Mellak
hi! I ever solve this problem with sessions... when a user does the login, I have session_start(); session_register("allowed"); $allowed = true; and on the top of all the other sites, where just "special" users are allowed to go in, there is a include ("checkAllowed.php"); checkAllowed.php ju