私はfile_get_contents()に問題があります。古いサーバーではすべて正常に動作しますが、新しいものでは取得しようとしているURLの404エラーが発生します。
すべてのURLは同じウェブサイトから同じ構造になっていますが、いくつかは私にこのメッセージを与えます:
Warning: file_get_contents(http://url.com/path_to_file.html) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in /home/user/domains/domain.com/public_html/tst.php on line 3
私は新しいサーバーにインストールされた彼の基本的な設定でDirectAdminを持っていますが、もう一方ではcPanel
誰かが問題の原因を知っていますか?
ありがとう。