andripzf

[PHP] Simple Script File Get Contents

Jul 8th, 2013
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <form method="POST">
  2. <input type="text" name="url" value="http://">
  3. <input type="submit" name"anu" value="comot">
  4. </form>
  5.  
  6. <?php
  7. if(isset($_POST['anu'])){
  8. $target = $_POST['url'];
  9. $ambil = file_get_contents($target);
  10. $tulis = fopen('newfile.php', 'w');
  11. fwrite($tulis,$ambil);
  12. fclose($tulis);
  13. }
  14. ?>
Add Comment
Please, Sign In to add comment