Hi im having a problem with handling uploaded files.
$_FILES['picture'];
echo "$picture_name";
move_uploaded_file($_FILES['picture']['tmp_name'],"".$_FILES['picture']['name']);
copy($_FILES['picture']['tmp_name'], $_FILES['picture']['name']);
I get the filename and am trying to copy the file to somewhere else.
This is the output i get:
this: , 1, , spacer.gif,
Warning: move_uploaded_file(spacer.gif): failed to open stream: Permission denied in /home/buucdjsc/public_html/admin/confirmaddrecommendation.php on line 27
Warning: move_uploaded_file(): Unable to move '/tmp/phpmLI7jB' to 'spacer.gif' in /home/buucdjsc/public_html/admin/confirmaddrecommendation.php on line 27
Warning: copy(spacer.gif): failed to open stream: Permission denied in /home/buucdjsc/public_html/admin/confirmaddrecommendation.php on line 29
The php file that handles this is in directory /www/admin/
Really i want to move the file to /www/v5/images/
Please help
Thanks in advance