Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- ob_start();
- curl_exec($ch);
- curl_close($ch);
- $contents = ob_get_contents();
- ob_end_clean();
- function get($a,$b,$c){
- $y = explode($b,$a);
- $x = explode($c,$y[1]);
- return $x[0];
- }
- if (empty($contents)) {
- echo 'sorry you enter the incorrect value';
- }
- else
- {
- echo "<div style ='font:30px Arial,tahoma,sans-serif;color:#555;margin: 450px 675px'>" . get($contents,'<plaintext>','</plaintext>') . "</div>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement