Hello,
There is no problem.
$url = "http://www.mydomain.com/run/file.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT,300);
$out = curl_exec($ch);
$output = trim($out);
curl_close($ch);
$mysqlibag->query("INSERT INTO table (id, column)values (NULL, '$output');
But I want to do this without full URL.
This cURL is for example. How can I run this $url = "/run/file.php"; without full URL? What can I run it with?
$url = "/run/file.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT,300);
$out = curl_exec($ch);
$output = trim($out);
curl_close($ch);
$mysqlibag->query("INSERT INTO table (id, column)values (NULL, '$output');
Thank you in advance