2010-09-29 24 views
0

我想PHP文件Drupal的包括来自网络

include("http://domain.com/file.php") 

无论是我的Drupal模块或主题英寸

,但我得到

Failed opening required 'http://domain.com/file.php' (include_path='.:/opt/lampp/lib/php') 

什么是做这种正确的方法是什么?

谢谢!

回答

2

在php.ini中设置allow_url_fopen = On。获取更多信息here

1

这是正确的方法。但是allow_url_include需要在你的php.ini中设置为true。

0

您的PHP版本需要> = 4.3.0。

您需要启用 “allow_url_fopen选项”,在你的的php.ini文件

allow_url_fopen = On 

我建议你在php.net的include功能来读取。