Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. $ch = curl_init();
  3. curl_setopt($ch, CURLOPT_URL, $url);
  4. ob_start();
  5. curl_exec($ch);
  6. curl_close($ch);
  7. $contents = ob_get_contents();
  8. ob_end_clean();
  9.  
  10. function get($a,$b,$c){
  11. $y = explode($b,$a);
  12. $x = explode($c,$y[1]);
  13. return $x[0];
  14. }
  15.  
  16. if (empty($contents)) {
  17. echo 'sorry you enter the incorrect value';
  18. }
  19. else
  20. {
  21.  
  22.  
  23. echo "<div style ='font:30px Arial,tahoma,sans-serif;color:#555;margin: 450px 675px'>" . get($contents,'<plaintext>','</plaintext>') . "</div>";
  24. }
  25.  
  26.  
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement