Quote:
Originally Posted by adultseo
Hi!
The most easy way is this:
Server 1:
Code:
<?php
$data = array(array(1,3,4,5),1,2,3,4,array(array(10,11,12),'test'));
$output = var_export($data,true);
print $output;
?>
Server 2:
Code:
<?php
$data_text = file_get_contents('url/to/server_1.php');
eval('$data = '.$data_text.';');
print_r($data);
?>
|
Thank you, but I don't understand.
I need to send data to the other server and accourding to this data perform an action. I didn't mean to just read the data as is on the other server.