-
Web help...
$fp = fopen("C:/kathana6/Share/Serv02/New/$UserID.txt","w");
fwrite($fp,$UserID."\r\n");
fwrite($fp,$Password."\r\n");
fwrite($fp,"000000\r\n");
fwrite($fp,$UserKey."\r\n");
$password2=strtoupper(md5(trim($Password)));
$initial=substr($UserID,0,1);
$userlenght=strlen(trim($UserID));
$accdir="C:\kathana6\DBSRV\Account";
$f=fopen("./inc/sample.tad", "r");
$acc = fread($f,7124);
$demoid=substr($acc,0,$userlenght);
$demopass=substr($acc,52,32);
$acc = str_replace($demoid,$UserID,$acc);
$acc = str_replace($demopass,$password2,$acc);
// echo $accdir."\\".$initial."\\".$UserID;
$f2=fopen($accdir."\\".$initial."\\".$UserID.".tad", "a");
fwrite($f2,$acc);
fclose($fp);
fclose($f);
this is my code and it is creating the .tad file in the right folder but, when i try to login with the second registered user it says "ID Does Not Exist" and the first registered user says "Please Connect Again" can someone help me with this?
there show no errors on the website and I can log into the names that i registered with. thanks
Last edited by jbeitz107; 30-10-12 at 07:21 PM.
-
-
Member
-
Re: Web help...
would you explain please.