note 1594 deleted from fread by ronabop

From: Date: Sun, 27 Aug 2000 11:58:45 +0000
Subject: note 1594 deleted from fread by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3496@lists.php.net to get a copy of this message
I want make a script of comparison for a login and a pass for enter in a Member Page. But when I add most of one login and one pass the script doesn't found the first logib and pass or the new login and pass ... How can I put a lot of login and pass ? (it's on two file : login.txt and pass.txt) I put my script here for know if It's wrong. $filename="login.txt" $filename2="pass.txt" $fd=fopen("$filename","r") $login2=fread($fd,filesize($filename)) $fd2=fopen("filename2","r") $pass2=fread($fd2,filesize($filename2)) if(strstr($login,"$login2")) { if(strstr($pass,"$pass2")) { echo "Welcome to the Member Page" } else { echo "Bad Login Go Back" } } else { echo "Bad Login Go Back" }

« previous php.notes (#3496) next »