PHP:インクルードエラーの対処法
phpでインクルードしたときにこんなエラーがでました。
Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0
バージョンはPHP5.3.8でした。
対処法
ファイルの相対パスを絶対パスにすれば解決します。
<?php include ("test/hoge.txt"); ?>
このような書き方を
<?php include ("/test/hoge.txt"); ?>
のように絶対パスに変更する