tags:

views:

54

answers:

3

Hi

I want to

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

in either my drupal module or theme.

but I get

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

what is the correct way to do this?

thanks!

+1  A: 

That is the proper way. However allow_url_include needs to be set to true in your php.ini.

prodigitalson
+2  A: 

Set allow_url_fopen = On in php.ini. Get more info here

Paniyar
A: 

Your PHP version need to be >= 4.3.0.

You need to enable the "allow_url_fopen" in your php.ini file:

allow_url_fopen = On

I suggest you to read on the include function in php.net.

FR6