speedyrudolf
Programmer
Hi. While trying to test a some code, I ran into this error:
Does anyone know what the problem might be? Thank you.
The code is:Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access Resource id #3/eroare.php in /home/ on line 10
Code:
<?php
require("class.easyzip.php");
$timp=time();
$zip=new EasyZIP;
$file_dir="./upload".$timp;
mkdir($file_dir, 0777);
$dir=opendir($file_dir);
foreach($_FILES as $fisier=>$fisiere)
{if(is_uploaded_file($fisiere['tmp_name']))
{move_uploaded_file($fisiere['tmp_name'], "$dir/$fisiere[name]");}}
while(!(($fisier=readdir($dir))===false))
{$zip->addFile($fisier);}
closedir($dir);