I am currently trying to use the php function 'include' to include an external url. This is so that whenever the webpage is updated it will automatically update mine. The trouble I'm having however is that I keep getting an error saying the following...
Warning: require() [function.require]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\wamp\www\starterpack\starterpack2\header.php on line 48
I have tried to find a way to fix this error or find a way around it but cannot find one. Does anyone have any ideas?
P.S I am building the site using wampserver, could permissions of the wampserver be causing this error?
You would be better using echo file_get_contents($url)
as the include statement could execute any PHP code returned by the other site.
Look at your php.ini and make sure allow_url_include is set to 1. Restart HTTPD, done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With