Hi. I have the following code:
$timp=time();
$file_dir="./upload".$timp;
mkdir($file_dir, 0777);
foreach($_FILES as $fisier=>$fisiere)
{if(is_uploaded_file($fisiere['tmp_name']))
{move_uploaded_file($fisiere['tmp_name'], "$file_dir/$fisiere[name]");}}
Well…that is just part of the code…Anyway…After I use the form, I get the following error:
Warning: move_uploaded_file() [[COLOR=#0066cc]function.move-uploaded-file[/COLOR]]: SAFE MODE Restriction in effect. The script whose uid/gid is 189252/189236 is not allowed to access /home/www/free/uv.ro/rudolf.uv.ro/php/upload1256583575 owned by uid/gid 81/81 in /home/www/free/uv.ro/rudolf.uv.ro/php/upload.php on line 9
Does anyone know what the problem is? Thanks you.
PS: line 9 is the last line of code I copied, and I’m using post to submit the form.