Imagem de upload de php para outro subdomínio

$target_path = $_SERVER['DOCUMENT_ROOT'] . "/images/" . basename($_FILES['file']['name']);
move_uploaded_file($_FILES["file"]["tmp_name"], $target_path);
loneWolf_sage