Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $replace = 'http://pastebin.com/s2kV5jLk';
- $replace = str_replace('http://','',$replace);
- $replace = str_replace('www.','',$replace);
- $replace = str_replace('pastebin.com','',$replace);
- $replace = str_replace('/','',$replace);
- $replace = str_replace('raw.php?i=','',$replace);
- $url = 'http://pastebin.com/raw.php?i='.$replace;
- $get_contents = file_get_contents($url);
- if($get_contents=='Pastebin.com Unknown Paste ID')
- {
- $CodeShow = 'No Pastebin Data Found!';
- }
- else
- {
- $CodeShow = $get_contents;
- }
- echo '<textarea cols="100" rows="50" readonly>'.($CodeShow).'</textarea>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement