nscho

200 check

Jan 28th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <form method="post">
  2. <textarea name="inp_text">http://memec.com/jembut.php</textarea>
  3. <input name="btn" type="submit" value="start"/>
  4. </form>
  5. <?php
  6. if(isset($_POST["btn"])){
  7. $data = $_POST["inp_text"];
  8. $lines = explode("\n", $data);
  9. foreach($lines as $web)
  10. {
  11. $ch = curl_init($web);
  12. curl_exec($ch);
  13. if (!curl_errno($ch)) {
  14. switch ($http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE)) {
  15. case 200:
  16. echo $web.' Found<br>';
  17. break;
  18. default:
  19. echo '';
  20. }
  21. }
  22. curl_close($ch);
  23. }
  24. }
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment