hi
i have big problem ,i have script to upload files ,the script have folder with name uploads wth mode:0777, the script create random folder inside the uploads folder and then move uploded file inside it by move_uploaded_file() function ,
but this mehod require safe mode tobe Off !!! ,
i want do this method but with safe mode on or off ,
the code which create folders and move uploaded fie
$filename=$files["file_$f"]['name'];
$rand=rand(0,9).time();
$path=mkdir("uploads/$rand");
chmod("uploads/$rand",0777);
@move_uploaded_file($files["file_$f"]['tmp_name'],"uploads/$rand/filename"); $fo=@fopen("uploads/$rand/index.php","w");
@fwrite($fo,"<?php\nheader("HTTP/1.0 404 Not Found\");\n?>");
@fclose($fo);
please help:sick: