PHP Code:
mkdir($username);
$create = fopen("/$username/$username.txt", "w+");
fputs($create, "$username");
fclose($create);
That code creates the directory because i can see it with my ftp client...but it doesnt put the file in the directory...i get this error:
Warning: fopen(/yyy/yyy.txt): failed to open stream: No such file or directory in /var/www/html/forum/users/registerprocessor.php on line 31
why is this? thanks.
Comment