ShawnK wrote:call it a hunch but i think this is a cheat for a game? which i will not support or endorse
Bud, its not a cheat but I can see why you would think it was...I am trying to create it so when you sign up online anywhere it sends a file to the server cus thats wat holds all the users accounts and their accounts are held in a .ini file, the second code box is what it the file looks like when you open the .ini, it would be like username.ini ok well I dont know if I started it correctly but here
Yeah this is kinda what I want but I would like it so I could create it like
<form>
<input type="text" name="username"><br />
<input type="password" name="password"><br />
<input type="password" name="repassword"><br />
<input type="email" name="email"><br />
<input type="text" name="charactername"><br />
</form>
Ok now the account is set up like
[GENERAL]
Login=avatar
Password=something
[CHAR1]
Name=avataralex
Class= 1
Sex= 0
Sprite= 1
Level= 1
Exp= 0
Access= 0
PK= 0
Guild=
Guildaccess= 0
Head= 0
Body= 0
Leg= 0
HP= 10
MP= 10
SP= 10
STR= 12
DEF= 5
SPEED= 3
MAGI= 0
POINTS= 0
etc...
$myFile = "$_GET["username"].ini";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "[GENERAL]\n";
fwrite($fh, $stringData);
$stringData = "Login=$_GET["username"]\n";
fwrite($fh, $stringData);
$stringData = "Password=$_GET["password"]\n";
fwrite($fh, $stringData);
$stringData = "[CHAR1]\n";
fwrite($fh, $stringData);
$stringData = "Name=$_GET["charactername"]\n";
$stringData = "Class= 1\n";
fwrite($fh, $stringData);
$stringData = "Sex= 0\n";
fwrite($fh, $stringData);
$stringData = "Sprite= 1\n";
fwrite($fh, $stringData);
$stringData = "Level=1\n";
fwrite($fh, $stringData);
$stringData = "Exp=0\n";
fwrite($fh, $stringData);
$stringData = "Guild=\n";
fwrite($fh, $stringData);
$stringData = "Guildaccess=0\n";
fwrite($fh, $stringData);
etc...
fwrite($fh, $stringData);
fclose($fh);
Say I was at my friends house and I want to create a chracter, well when I did it sent the .ini into my computer where the server is