Code: Select all
<?php
else {
touch($usersfile);
chmod($usersfile,0666);
$new_file=fopen($usersfile, "w");
fwrite($new_file, "01|$username|");
fclose($new_file);
echo "Your username was successfully added.";
}
?>Warning: touch() [function.touch]: Unable to create file usernames.dat because Permission denied in /home/jereese/public_html/RUC/nameadd.php on line 38
Warning: chmod() [function.chmod]: No such file or directory in /home/jereese/public_html/RUC/nameadd.php on line 39
Warning: fopen(usernames.dat) [function.fopen]: failed to create stream: Permission denied in /home/jereese/public_html/RUC/nameadd.php on line 40
Warning: fwrite(): supplied argument is not a valid stream resource in /home/jereese/public_html/RUC/nameadd.php on line 41
Warning: fclose(): supplied argument is not a valid stream resource in /home/jereese/public_html/RUC/nameadd.php on line 42
Obviously, all of the errors after touch have to do with the file not being created. Any help would be greatly appreciated.