Jump to content

Recommended Posts

Posted


<?php

function curl( $url )

{

if ( in_array( "curl", get_loaded_extensions() ) ) {

$ch = curl_init() ;

$array = array(

CURLOPT_URL => $url,

CURLOPT_HEADER => 0,

CURLOPT_FRESH_CONNECT => 1,

CURLOPT_RETURNTRANSFER => 1 ) ;

curl_setopt_array( $ch, $array ) ;

$result = curl_exec( $ch ) ;

curl_close( $ch ) ;

return $result ;

} else {

return @file_get_contents( $url ) ;

}

}

$curl = curl( "http://inbuzunar.mobi/loto.php" ) ;

$grab = explode( '<body>', $curl ) ;

$rest = explode( '<div class="footer_menu">', $grab[1] ) ;

$show = preg_replace( array( "/<div class=\"ad_menu\">(.+?)<\/div>/si", "/<div class=\"nolink\">(.+?)<\/div>/si" ),

array( "", "<p>$1</p>" ), $rest[0] ) ;

echo $show . "\n" ;

?>

DEMO: http://inbuzunar.mobi/loto.php

  • Upvote 1

Pasnic si..simplu

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.