I have two PHP files located on different servers, one at http://www.mysite.com/main.php
, the other at http://www.sample.com/includeThis.php
.
I want to include the second file from the first one.
The content of the second file looks like this:
<?php
$foo = "this is data from file one";
And the first file:
<?php
include "http://www.sample.com/includeThis.php";
echo $foo;
Is there any way I can do this?
Question&Answers:os