在服务器php之间传递变量

时间:2019-01-26 23:29:43

标签: php variables file-get-contents

我正在尝试从一个脚本获取变量,然后从位于另一台服务器上的其他脚本获取变量。 script1.php

$variable1 = "hello";

在其他服务器上,我有script2.php:

$file = file_get_contents ('http://example.com/script1.php');
echo $file;

0 个答案:

没有答案
相关问题