I\'m trying to do exactly the same thing as in my previous Python question, but in PHP. See my previous (answered) question
PHP script from previous question does someth
To run a second script on the same server
$appUrl = $_SERVER['HTTP_HOST']; $path = 'second.php';//your path here $appUrl = 'http://'.$appUrl.'/'.$path; file_get_contents($appUrl);