Its supposed to create a .ini file in the /scriptfiles/users/ with the name they entered into the field then its supposed to create a password in the file in md5 encryption like this "password=32jknfdjkb324" like that but it doesn't create the file?, Heres my code.
Code: [Select]<center>
<form method=post action=register.php?action=register name=s>
<table>
<h1>Register on our SA-MP Server.</h1>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=password name=password></td></tr>
<tr><td colspan=2 align=center><input type=submit value=Register></td></tr>
</table>
</form>
</center>
<?php
if ($action == register) {
//cAccounts
//By Chris
//Register accounts and login on websites.
$ftp_host = "randomhostname"; //put the ip / hostname to your ftp here
$ftp_user = "randomuser"; //put your login here
$ftp_pass = "password"; //put your password here
$username = $_POST['username'];
$password = md5($_POST['password']);
$con = ftp_connect($ftp_host) or die("Error: Could not connect to FTP, Check FTP Settings.");
ftp_login($con, $ftp_user, $ftp_pass);
if (file_exists($username)) {
echo "This username already exists!, Please try another.";
} else {
$createfile = "scriptfilesusers$username.ini";
$wrightfile = fopen($createfile, 'w') or die("Error: Cannot create file.");
$wpass = "password=$password";
fwrite($wrightfile, $wpass);
fclose($wrightfile);
}
ftp_close($con);
}
?>
add 20 000 to the rowcnt
Hi ... I need to add 20 000 to the row count but just cant find a way to do this i am new to php coding so please can u help me,the reason i need this is so i can clear the mysql database after it
do while conditions
i want to display 6 images in a 2x3 tablenow what would be the correct logic tocount that there are 6 images resultsand if there are more than 6 images loop and echo the rest but not in the tablebut
if php cookie set, show code...
Hi all.. I need to figure out this little snippet right quick.. seems like it should be easy enough to do, but I'm flailing here...I need to have a blurb that checks to see if a cookie of a specific
Display certain image depending on time of year
Hi, I am new to these forums and would really appreciate some advice on a piece of coding I have done.Basically what I am trying to do is on our intranet, display a different home page banner
Not reloading page after php form submit
Hello helpful souls out there. You guys have come through for me in the recent past and I'm hoping someone out there can either help me or point me in the right direction.I have the following site,
Array disappearing in foreach loop
Okay, I have this problem where an array will become undefined in a foreach loop.Here is the function plus a couple comments:Code: [Select]function mineResources($nation) {global $db;$resources =
Extracting Long text from message class with parameters
Hi,
HOW to get the bind variables list.
I've the following problem : I've some SQL queries stored in my DB as VARCHAR2 values.
BSP Ext - tableView - Sort - NEWBIE
Hi,
MySQL query problem
When I try to run the following piece of code, I get this error:QuoteWarning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/muskelmann098/public_html/build.php on line