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!
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.