Hi I am working on a website that users can use to create their own blogs. But I have hit a problem.
Whenever I try to create a new file with the members username in. The rest of my script works perfectly.
Can anyone see a problem with my code.
P.S. the $username value is already specified by a previous form.
//Create User settings $file = "user.php"; $handle = fopen("$username/$file", "w"); $data = '<?php $userid = "' . $username . '" ?>'; fwrite($handle, $data); fclose($handle);
Thanks in advance