[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:43860] Re: phpのinclude
- From: Minoru Nagahama <seiwa@xxxxxxxxxxxxx>
- Subject: [debian-users:43860] Re: phpのinclude
- Date: Fri, 24 Jun 2005 23:15:38 +0900
- List-help: <mailto:debian-users-ctl@debian.or.jp?body=help>
- List-id: debian-users.debian.or.jp
- List-owner: <mailto:debian-users-admin@debian.or.jp>
- List-post: <mailto:debian-users@debian.or.jp>
- List-software: fml [fml 4.0.3 release (20011202/4.0.3)]
- List-unsubscribe: <mailto:debian-users-ctl@debian.or.jp?body=unsubscribe>
- X-accept-language: ja, en-us, en
- X-ml-info: If you have a question, send e-mail with the body	"help" (without quotes) to the address debian-users-ctl@debian.or.jp;	help=<mailto:debian-users-ctl@debian.or.jp?body=help>
- X-ml-name: debian-users
- X-mlserver: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post)
- X-original-to: debian-users@debian.or.jp
- X-spam-level: 
- X-spam-status: No, hits=-4.6 required=10.0	tests=IN_REP_TO,ISO2022JP_BODY,ISO2022JP_CHARSET,	      QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,	      X_ACCEPT_LANG	version=2.44
- References: <003901c57820$599327f0$0600a8c0@black>
- Message-id: <42BC1574.8060205@xxxxxxxxxxxxx>
- X-mail-count: 43860
- User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
長浜と申します。
こんばんは。
間違っているかもしれませんが・・・
php.ini の allow_url_fopen が Off になっていませんか?
セキュリティのために、URLからのファイルの読み込みをしないように
するオプションのようです。
参考まで。
yuuya@xxxxxxxxxxxxx wrote:
> いつも大変おせわになります。
> Virtualdomainを使用して、phpを使用していてエラーがでてしまい困ってます。
> 
> 外部のphpファイルを読み込んだときにエラーがでました。
> <? include"http://test.com/test.php";?>
> ------------------------------------------------------------------------------ 
> 
> Warning: main('http://test.com/test.php' ): failed to open stream: 
> Connection refused in /var/www/html/sample.php on line 17
> 
> Warning: main(): Failed opening 'http://test.com/test.php' for inclusion 
> (include_path='.:/usr/share/php:/usr/share/pear') in 
> /var/www/html/sample.php on line 17
> ------------------------------------------------------------------------------ 
> 
> phpそのものは動いており 'http://test.com/test.php'  は表示されます。
> 
> 
> /apache2/sites-enabled/000-default の設定なのですが
> 
> VirtualHost で
> 
>   exmple.com
>   abc.exmple.com
>   test.com
> 
> を使用してます。
> exmple.comとabc.exmple.com からですとincludeで読み込むことができます。
> しかし test.com からだと上記のエラーがでます。
> 
> <VirtualHost *>
> ServerAdmin aaa@xxxxxxxx
> ServerName exmple.com
> DocumentRoot /var/www/html/
> <Directory />
>  Options FollowSymLinks ExecCGI Includes
>  AllowOverride All
> </Directory>
> <Directory /var/www/html/>
>  Options FollowSymLinks MultiViews ExecCGI Includes
>  AllowOverride All
>  Order allow,deny
>  allow from all
> </Directory>
> </VirtualHost>
> 
> <VirtualHost *>
> ServerAdmin aaa@xxxxxxxx
> ServerName test.com
> DocumentRoot /home/test/public_html/
> <Directory />
>  Options FollowSymLinks ExecCGI Includes
>  AllowOverride All
> </Directory>
> <Directory /home/test/public_html/>
>  Options FollowSymLinks MultiViews ExecCGI Includes
>  AllowOverride All
>  Order allow,deny
>  allow from all
> </Directory>
> </VirtualHost>
> 
> ご指導の程よろしくおねがいします。
> 
> Debian 3.1 yuyaitoh
> 
> 
> 
> 
> 
>