**我需要使用這個文件的PHP變量的URL發佈服務器**從URL INCLUDIN php文件用PHP
http://example.com/addData.php (the other server)
-------------------------------------
$a_player1 = $_POST['a_player1'] = 1;
$a_player2 = $_POST['a_player2'] = 3;
htto://srore.com/getdata.php
-------------------------------------
include("http://example.com/addData.php");
echo $a_player1;
echo $a_player2;
錯誤???
Notice: Undefined variable: a_player1
Notice: Undefined variable: a_player2
php.ini設置然後allow_url_include在
如果這兩個文件都在同一個文件夾中,則不需要使用「」http://...../test/「,只需使用include(」addData.php「); – jophab