This is my code:
CODE
mkdir("../$user", 0777);
$filename = '../'.$user.'/index.php';
$filecontent = 'lots of php crap that will be index.php';
$file = fopen($filename, "w");
fwrite($file, $filecontent);
fclose($file);
So, the folder is created properly but fopen() function gets an error that says:
CODE
Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 2003 is not allowed to access /www/uuuq.com/b/l/o/blogline/htdocs/ruuska2 owned by uid 2001 in /www/uuuq.com/b/l/o/blogline/htdocs/libs/functions.inc.php on line 244
Please help me!