Warning: Undefined array key "USER" in /home/htranpaa/public_html/index.php on line 6
Array ( [telegram.org] => 1 [bing.com] => 1 [google.com] => 1 [github.com] => 1 [www.wikipedia.org] => 1 [www.playstation.com] => 1 [www.aparat.com] => 1 [torob.com] => 1 ) //echo $urls = 'N;'; //$urls_array = unserialize($urls); $urls = 'null'; $urls_array = json_decode($urls, true); //print_r($test); foreach ($urls_array as $element) { if(fsockopen($element['url'],443, $errno, $errstr, 5)) { //print "I can see port 443"; $result[$element['url']]= '1'; } else { //print "I cannot see port 443"; $result[$element['url']]= '-1'; } } print_r($result); //$post_result=base64_encode(serialize($result)); $post_result = base64_encode(json_encode($result)); $url = "https://radar.maus.ir/nodes-healt-check.php?post_result=" . $post_result."&node_ip=" . urlencode($node_ip); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 60); $response = curl_exec($ch); if (curl_errno($ch)) { echo "Curl Error: " . curl_error($ch); } curl_close($ch); echo $response; $output = ob_get_contents(); $file = 'run_log.txt'; $message = $output . "\n\n"; file_put_contents($file, $message); Record inserted successfullyRecord inserted successfullyRecord inserted successfullyRecord inserted successfullyRecord inserted successfullyRecord inserted successfullyRecord inserted successfullyRecord inserted successfullyArray ( [telegram.org] => 1 [bing.com] => 1 [google.com] => 1 [github.com] => 1 [www.wikipedia.org] => 1 [www.playstation.com] => 1 [www.aparat.com] => 1 [torob.com] => 1 ) string(100) "INSERT INTO urls_tracker (srv,url,status,time) VALUES ('62.60.205.220','torob.com','1','1771979574')"