Advertisement
sajjad_hira

Bin Test

Jun 3rd, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2. $replace = 'http://pastebin.com/s2kV5jLk';
  3. $replace = str_replace('http://','',$replace);
  4. $replace = str_replace('www.','',$replace);
  5. $replace = str_replace('pastebin.com','',$replace);
  6. $replace = str_replace('/','',$replace);
  7. $replace = str_replace('raw.php?i=','',$replace);
  8. $url = 'http://pastebin.com/raw.php?i='.$replace;
  9. $get_contents = file_get_contents($url);
  10. if($get_contents=='Pastebin.com Unknown Paste ID')
  11. {
  12. $CodeShow = 'No Pastebin Data Found!';
  13. }
  14. else
  15. {
  16. $CodeShow = $get_contents;
  17. }
  18. echo '<textarea cols="100" rows="50" readonly>'.($CodeShow).'</textarea>';
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement