note 75531 deleted from function.mkdir by bjori

From: Date: Sun, 10 Jun 2007 15:23:37 +0000
Subject: note 75531 deleted from function.mkdir by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127360@lists.php.net to get a copy of this message
Note Submitter: salik dot taurus at gmail dot com ---- Warning: move_uploaded_file() [function.move-uploaded-file ]: Unable to move '/tmp/phpibrBoh' to '../resource_files/18/38.pdf' in /home/us3y0ur/public_html/include/my_func.php on line 653 i have found error plz anybody knows howz its fixed i have right all permession function upload_resource_file($arr,$file_id,$cat_id) { if ($arr['name']!="" and is_numeric($file_id) and is_numeric($cat_id)) { /////////////////// UPLOAD FILE $arr_ext = explode(".",$arr['name']); $ext = $arr_ext[count($arr_ext)-1]; $arr['name'] = $file_id.".".$ext; create_category_folder($cat_id); $upload_fold = "../resource_files/".$cat_id."/".$arr['name']; if (move_uploaded_file($arr['tmp_name'], $upload_fold)) { save_file_name($file_id,$arr['name']); return true; } else return false; } else return false; } this function is found on line 653 plz solve this prob asap

« previous php.notes (#127360) next »