I want to move an image from the folder www.abc.com/upload/abc.jpg
to www.def.com/upload/abc.jpg
. Here these two website have same cpanel of godaddy but their ftp details are different.. how can I move that image ?
<?php
move_uploaded_file($_FILES["file"]["tmp_name"],
"C:\inetpub\vhosts\def.com\upload\\" . $_FILES["file"]["name"]);
?>
it is not working . But it will work when i am using ftp_put()
function, this function needs ftp username and password.. i want to move the image without ftp details. how can i move it and is it possible?