php upload image to another subdomain

39

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

Comments

Submit
0 Comments