Re: [nyphp-talk] ini_set and file_get_contents

2009-05-11 Thread Petros Ziogas
I liked the warm thanks, made my morning. curl is very powerfull and it is a tool to have in your arsenal. The problem is that many hosts have it disabled. Petros Ziogas http://www.royalblue.gr On Thu, May 7, 2009 at 5:26 PM, Leam Hall wrote: > Brent, you are a wonderful person! No matter what

Re: [nyphp-talk] ini_set and file_get_contents

2009-05-07 Thread Leam Hall
Brent, you are a wonderful person! No matter what Hans, Mitch, David, and maybe a few others say...:) Wasn't able to change anything that would allow file_get_contents but the curl code you provided works like a charm! This is a growth point for me so it's nice to be successful for a chang

Re: [nyphp-talk] ini_set and file_get_contents

2009-05-06 Thread Brent Baisley
You should file_get_contents to retrieve URLs, which is what you seem to be trying to do. It doesn't handle failures (i.e. timeout, redirects) very well at all. You should use curl if you need to retrieve a remote file. $url = 'http://yourfile.com'; $ch = curl_init(); curl_s

Re: [nyphp-talk] ini_set and file_get_contents

2009-05-06 Thread Tom Melendez
On Wed, May 6, 2009 at 7:13 AM, Leam Hall wrote: > I have a file_get_contents working on my laptop/dev box, but when I put it > on the hosting server it comes back with an error. > >        URL file-access is disabled in the server configuration > > My guess is that there's a way to ini_set this t

[nyphp-talk] ini_set and file_get_contents

2009-05-06 Thread Leam Hall
I have a file_get_contents working on my laptop/dev box, but when I put it on the hosting server it comes back with an error. URL file-access is disabled in the server configuration My guess is that there's a way to ini_set this to allow it, but the closest thing I found was allow_url_