[PHP] Re: file_get_contents doesn't work on one particular server

2009-04-29 Thread Shawn McKenzie
Shawn McKenzie wrote: > Brian Dunning wrote: >> Howdy all - We have a production server that runs our script fine. We're >> setting up a test server, and this particular script returns a length of >> zero: >> >> $ctx = stream_context_create(array('http' => array('timeout' => 1200))); >> // 20 minut

[PHP] Re: file_get_contents doesn't work on one particular server

2009-04-29 Thread Shawn McKenzie
Brian Dunning wrote: > Howdy all - We have a production server that runs our script fine. We're > setting up a test server, and this particular script returns a length of > zero: > > $ctx = stream_context_create(array('http' => array('timeout' => 1200))); > // 20 minutes per file > $contents = fil

[PHP] Re: file_get_contents crash, if file is bigger than memory_limit

2007-06-24 Thread Jochem Maas
it's difficult to read. why? don't top post. oh and please post to the list. [EMAIL PROTECTED] wrote: > 1. I dont know, if this is an feature request well you're the only one who might. > >>> given that your own comment in the example below states "while loop reading >>> the data! (This wo

Re: [PHP] Re: file_get_contents

2007-02-06 Thread Richard Lynch
On Tue, February 6, 2007 7:53 am, Colin Guthrie wrote: > Steven Macintyre wrote: >> Hiya, >> >> I need to be able to read a file into a string - I have used the >> above >> command and it works ... now ... I need to read a file into a string >> - that >> requires a username and password to access t

[PHP] Re: file_get_contents

2007-02-06 Thread Colin Guthrie
Steven Macintyre wrote: > Hiya, > > I need to be able to read a file into a string - I have used the above > command and it works ... now ... I need to read a file into a string - that > requires a username and password to access the authentication is normal HTTP > basic realm > > Any ideas? $va

[PHP] Re: File_get_contents()

2005-04-07 Thread Jason Barnett
Jeff McKeon wrote: > Does anyone know if it's possible to have file_get_contents() accept a > file handle? file_get_contents() does the file handle operations internally, so it only expects the name of the file. If you want to use file handles yourself, then you should just fopen(), fread(), and

[PHP] Re: file_get_contents source??

2002-04-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Giovanni Lenzi) wrote: > file_get_contents function is supposed to return the contents of a file in a > binary safe manner. I tried it on two different servers which has different > versions of APACHE+PHP but it still not works. > The server giv