# move\_uploaded\_file() error (part2)

**URL:** <https://forum.kirupa.com/t/move-uploaded-file-error-part2/299019>\
**Category:** programming\
**Created:** [October 28, 2009, 6:13pm UTC](https://forum.kirupa.com/t/move-uploaded-file-error-part2/299019 "2009-10-28T18:13:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![speedy\_rudolf](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@speedy\_rudolf](https://forum.kirupa.com/u/speedy_rudolf)\
**Post date:** [October 28, 2009, 6:13pm UTC](https://forum.kirupa.com/t/move-uploaded-file-error-part2/299019/1 "2009-10-28T18:13:27Z")

</div>

Hi. While trying to test a some code, I ran into this error:

> Warning: move\_uploaded\_file() [function.move-uploaded-file]: Unable to access Resource id #3/eroare.php in /home/www/free/uv.ro/rudolf.uv.ro/php/upload.php on line 10

The code is:

```auto
<?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);

```

Does anyone know what the problem might be? Thank you.
