okay, What I want to do, is when they do something, it will create a folder with a file inside it, both named the same as their username.
I tried the below, but it doesnt work..any thoughts?
$filename = 'C:/Xitami/webpages/RPG/';
$filename .= $user;
$filename .= '/';
$filename .= $user;
$filename .= '/';
$handle = fopen($filename, "w");
$old_content = fread($handle, filesize ($filename));
$handle = null;
$newcontent = '10000';
$handle2 = fopen($filename, "w");
$finalwrite = fwrite($handle2, $newcontent);
fclose($handle2);