Forum Moderators: coopster
<?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.