0

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!

3 Answers 3

2

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

Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.