The actual setting is allow_url_fopen. allow_url_include controls whether or not you can use a remote URL as an include (however, if allow_url_fopen is off, then allow_url_include will also be off.) The short answer to your question is: yes, there is a way. Several ways, in fact. You could use curl, or you could use an Http client written in php. The latter involves using either the socket_ or the fsocket functions. * http://scripts.incutio.com/httpclient/ On Tue, Mar 18, 2008 at 10:11 AM, Chris <cwilli14@xxxxxxxxxxxxxxxx> wrote: > I've encountered a situation where under PHP 5 the file_get_contents() > function will not work properly (actually not at all) if the php.ini > Filesystem configuration parameter, allow_url_include is set to OFF. > According to the PHP documentation allow_url_include is intended to > limiting PHP from accessing scripts on other servers. > > I have read posts that suggest setting allow_url_include to ON as > a solution. Well that's great if you have the ability to modify your > php.ini. But what if you have an account on a shared hosting system > and the hosting company will NOT make the requested change? > > Is there a work around to this or how would one access remote web services > if allow_url_include is OFF. This looks like a huge problem since many > services, like PayPal's IPN and Google maps geocoding, rely on > communication > with their servers. > > Thanks, > Chris > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >