ファイルの内容を別のWebサイトから読み込みたいが、読み込めません。 私は両方のホストにアクセスできます。 file_get_contents()
機能を使用したいです。ファイルやフォルダのファイルディレクトリで変更する必要があるのは何ですか?または私のPHPファイルですか? enter link description here私はfile_get_contents()を使用したいときにタイムアウトします
<?php
$direct="http://nic.subz.ir/api/index.php";
echo $direct;
echo file_get_contents($direct);
?>
アクセスしているコードとサンプルのリンクをご提供ください。 file_get_contents()を使用してデータを取得できません。 ? –
はい。私はデータにアクセスできません[コード] $直接= "http://nic.subz.ir/api/index.php"; echo $ direct; echo file_get_contents($ direct); [/ code] http://services.khazrait.ir/feeds/te.php –