allow_url_fopen をオンにして、他のサーバーから php または js ファイルを使用して php ファイルの内容を取得するにはどうすればよいですか? 私はこれを最初に試します-ITS WORKですが、私のサーバーからです!
<?php
$url = "index.php";
$json = file_get_contents($url);
echo $json;
echo 1;
?>
私は仕事ではありません
<?php
$url = "http://mysite.com/index.php";
$json = file_get_contents($url);
echo $json;
echo 1;
?>
他のサーバーから allow_url_fopen でファイルコンテンツを取得する方法を知っている人はいますか?
または私のサーバーからの他のユーザー?
またはそのファイルから変数を取得しますか?