Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $ch = curl_init("http://www.servidorremoto.com/upload.php");
  2. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  3. curl_setopt($ch, CURLOPT_POST, true);
  4. curl_setopt($ch, CUROPT_POSTFIELDS, array('fileupload' => '@'.$_FILES['arquivo' ['tmp_name']));
  5. echo curl_exec($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement