Forum Moderators: coopster

Message Too Old, No Replies

allow external includes = off

What is this, and is there any way to change it?

         

shs_cmcl

7:36 pm on Aug 5, 2008 (gmt 0)

10+ Year Member



I've got a client's site hosted on Register.com, and there's a page on the site that needs to have an include from another domain, like so:


<?php
include ('http://www.example.com/foo.php');
?>

We do this on several of our sites that are hosted with Godaddy, HostGator, Ipower, etc. but I couldn't get it working on this client's Register.com site so I looked at the phpinfo() and it has the directive allow_external_includes set to off. I tried uploading my own php.ini and php5.ini files with allow_external_includes, allow_url_fopen, and allow_url_include all set to on, but allow_external_includes remains set to off -- furthermore, I don't even see it listed as a directive in the PHP manual [php.net] and it doesn't even seem to turn up on Google. Is this some weird, proprietary thing Register.com has set up to prevent external includes, or is there some other way around it? According to the phpinfo() it's running PHP version 5.2.4.

eelixduppy

3:08 am on Aug 6, 2008 (gmt 0)



I'm not sure, but there isn't any way aroundn it that I know of. The best thing for you to do is to contact your host. If you changed the php.ini file you need to restart the server, so this might also be the issue. Contact your host and I'm sure they will be glad to let you know how you -- if you can -- change your php configuration file.