note 75531 added to function.mkdir
| From: | salik dot taurus at gmail dot com | Date: | Mon, 04 Jun 2007 11:57:48 +0000 |
| Subject: | note 75531 added to function.mkdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127181@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 202.38.58.8 (proxied: 202.38.58.42)
----
Manual Page -- http://www.php.net/manual/en/function.mkdir.php
Edit -- https://master.php.net/note/edit/75531
Del: integrated -- https://master.php.net/note/delete/75531/integrated
Del: useless -- https://master.php.net/note/delete/75531/useless
Del: bad code -- https://master.php.net/note/delete/75531/bad+code
Del: spam -- https://master.php.net/note/delete/75531/spam
Del: non-english -- https://master.php.net/note/delete/75531/non-english
Del: in docs -- https://master.php.net/note/delete/75531/in+docs
Del: other reasons-- https://master.php.net/note/delete/75531
Reject -- https://master.php.net/note/reject/75531
Search -- https://master.php.net/manage/user-notes.php