cURL always return blank page on NGINX PHP
Hello, am new to nginx and i can`t get cURL script to work ... it always returns blank page with no error.
here is the code :
<?php
error_reporting(E_ALL);
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
$url = 'http://ntsoft.co';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
$data = curl_exec($curl);
curl_close($curl);
return $data;
?>
PS: i have installed cURL to php and verify it, it is marked on my info.php file.
Log In to Comment