PDA

View Full Version : PHP script for Password and Redirection



dorothyc
June 29th, 2005, 05:25
Hi,

Is there any free PHP script that can asks for a user id and password, and then redirect the user based on the id they entered, that doesn't require any database such as MySQL?

Something like this CGI script (which we are using but our host is dropping CGI support...): http://www.rlaj.com/scripts/password/passwd-redir/

Thanks

talkhost
June 29th, 2005, 05:42
Try this one. It was coded by one of our members.
login script using html, php and mysql
http://www.talkhost.info/forum/showthread.php?t=373

{EDIT} I just noticed you don't want mySQL.

overulehost
July 5th, 2005, 05:17
try www.hotscripts.com

they have ton of scripts and i am sure they got what you are looking for .

R4g1ng
July 5th, 2005, 05:53
Based on the id? When they are redirected, are the pages completely different or are only things like name and stuff different?

felguard
July 5th, 2005, 06:15
http://m2-klan.com/vb/showthread.php?p=227

ock1991
July 16th, 2005, 01:58
No MySQL database? Can flatfile work for you?

In theorical terms, you would store user information in a textfile, seperate their info by '##' and each new entry by '||'.

On the redirect part, you would first MD5 the entered password, counter check against the one returned from explode()'ing twice, once for the entry and another for the required info. Then, you would use header('Location : blah'); to redirect them to their page.


Thats custom coded, and may not be efficient. HotScripts should be your first stop though.