upload - PHP: Uploading File In a Network Folder -


i'm trying write application upload files network folder. here code:

    $root = "\\\\test04\\storage\\midia\\";     $dir = "26172"; //hardcoded testing reasons     echo " ".$root." is_writable? ".var_export(is_writable($root))."<br />"; //returns true     echo " ".$root." is_dir? ".var_export(is_dir($root))."<br />"; //returns true      foreach($_files['anexo']['name'] $key => $value) {         $name = $_files['anexo']['name'][$key];         if(!move_uploaded_file($name, $root."\\".$dir."\\".$name)) {             echo "upload error in file $name em $root\\\\$dir\\\\$name <br />";             print_r(error_get_last());         } else {             echo "upload of file $name complete.";         }     } 

but catch error. _error_get_last()_ empty.

move_uploaded_file returns false. copy returns false.

please help! many thanks.


Comments

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World