Hello,
$url = “http://www.mysite.com/folder/file.php”; or $url = “http://127.0.0.1/folder/file.php”;
Not the full url
In this way, local file, How do I run?
$url = “/folder/file.php”;
[php]
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT,300);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
[/php]
Thank you in advance
Regards