about how to run local file

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

OR
Without the full url! “folder/file.php” etc
How do I run local php file? and I save the output to the database

Thanks

How do I run local files? Can you help?

/folder/filename.php
ı will write output to database.

Thanks

Sponsor our Newsletter | Privacy Policy | Terms of Service