尝试将图像上传到文件夹

Hi I have an upload script that uploads images to a file, but I can not get to save in a file that isnt in the same folder as the php script.

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move  
'/tmp/phpkiIfQ' to 'http://--Webaddress--/Logoimages/bug4.png' in 
/home/--host--/public_html/uploaded/upload3.php on line 48

Removed some details and replaces with "--relevant--"

Here is the code I have on line 48

"http://--WebAddress--/Logoimages/" . $_FILES["file"]["name"]);

Any help would be great thanks, Mikey

Thanks you to everyone who answered

change to

"../Logoimages/" . $_FILES["file"]["name"]);

Are you actually using a HTTP URL as the location to move files to? That's probably where you're going wrong. Try using a local file path. If you need to go up and down the tree the pseudo directory .. will be useful.

You can't move the file to a url - you need to move it to the location on disk which maps to that Url - eg /srv/www/htdocs/Logoimages/somefile.png (The exact path will depend on what flavour of linux you're running and how your sites are set up)

Also, make sure your website user has permissions to write to that folder