I am getting an error uploading an image to a folder on my server that I dont know what it means. It works fine when I upload to my localhost.
Warning: move_uploaded_file(http://www.60minutes.co.za/admin/images/product-catalogue-pic1.jpg) [function.move-uploaded-file]: failed to open stream: HTTP wrapper does not support writeable connections. in /home/x60minuj/public_html/admin/addspecials.php on line 17
Can someone tell me what this means????
You're trying to move your file to a remote server (or php thinks it's a remote server). You can't do that. To move the uploaded file you have to give local path to your destination folder:
move_uploaded_file('temp_file','/home/x60minuj/public_html/admin/'.$filename);
Thanks I just figured out my error
if(move_uploaded_file($_FILES['photo']['tmp_name'], $target))
My $target was incorrect, it should be $target = 'images/';
Thanks!!!!!