Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <style type="text/css">
  2. body{
  3. background-color:#000000;
  4. font-family:"Trebuchet MS";
  5. text-align:center;
  6. margin-top:0.5%;
  7. color:#000000
  8. }
  9. h1{
  10. margin:auto;
  11. font-family:Impact;
  12. font-size:84px;
  13. }
  14. </style>
  15. <h1 style="color:00DEFF">404 somethings wong<h1>
  16. <?php
  17.  
  18. function curl_download($Url){
  19.  
  20. if (!function_exists('curl_init')){
  21. die('cURL is not installed. Install and try again.');
  22. }
  23.  
  24. $ch = curl_init();
  25. curl_setopt($ch, CURLOPT_URL, $Url);
  26. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  27. $output = curl_exec($ch);
  28. $start = strpos($output, '<object');
  29. $end = strpos($output, '</object>', $start);
  30. $length = $end-$start;
  31. $output = substr($output, $start, $length);
  32. curl_close($ch);
  33.  
  34. return $output;
  35. }
  36.  
  37. print curl_download('http://thebest404pageever.com/');
  38.  
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement