お初にお目にかかります。 MK corpの近藤です。 ■しかく■しかく■しかく■しかく■しかく ■しかく環境 ■しかくOS:Red Hat Linux 9 ■しかくPHP:PHP4 ■しかくWebSrv:Apache 2 htmlファイルの中でphpファイルがある場所を相対パスでincludeすると phpファイルに記述したphpの関数を使用できるのですが(以下に例)、 > include("./test.php"); 相対パスでなく、http://www〜で始まるURLでphpファイルを includeしたいと考えています(以下に例)。 > include("http://www.srv.ne.jp/test.php"); しかし、http://www〜経由でincludeすると 以下のWarningが出てincludeできません。 > Warning: php_hostconnect: connect failed in > /var/www/html/index.html on line 12 >> Warning: Failed opening 'http://www.srv.ne.jp/test.php' > for inclusion (include_path='.:/usr/share/pear') > in /var/www/html/index.html on line 12 これは、Apache側で何か設定が必要なのでしょうか? ご存知の方いらっしゃいましたら お願いいたします。 --------------------------- 近藤方弘 MK corp masahi65 @ wmail.plala.or.jp ---------------------------