PHP Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web Account créator</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<label>Compte :
<input type="text" name="name" id="name" />
</label>
<br />
<label>Valider
<input type="submit" name="valid" id="valid" value="Valider" />
</label>
</form>
<?php
if (isset($_POST['valid']))
{
if (file_exists($name.".acc")) {
echo "Account already exist.";
} else {
$fd = fopen("E:/".$name.".acc", "x+");
fwrite($fd,"[Account]\r\nAccName=$name\r\nPassword=\r\nLogonCount=0\r\nLogonType=2\r\nFlags=0\r\nCharacter=");
}
}
?>
</body>
</html>
PHP Code:
$fd = fopen("E:/".$name.".acc", "x+");






