Cant use "include"?

software development

#1

I am trying to include a sub content to a PHP page, but it returns error below:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in…

Any idea how to solve this?


#2

can you post your code so we can see how it’s being implemented?


#3

The key to your problem is the “URL” above - DH PHP installations do not allow URL access to files - for that you should use curl. If the file is local, address it via it’s absolute, or relative, path instead of with a url and the function will work. :wink:

In other words, it’s not the “include” you can’t use, it’s the url.

–rlparker


#4

You will find a complete explanation of what is happening here:
http://wiki.dreamhost.com/Allow_url_fopen


si-blog | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000]SCJESSEY97[/color]