Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Aidan Lister
If you want to use older functions without upgrading your version of PHP, try PHP_Compat. Here's file_get_contents which is comparable in speed to the native version: http://cvs.php.net/co.php/pear/PHP_Compat/Compat/Function/file_get_contents.php?r=1.19 Most information can be found at http://pe

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Curt Zirzow
* Thus wrote Mag: > I did look at the fopen option...but it just seemed a > little longer and more complicated to do that plus > according to this benchmark > (http://force-elite.com/~chip/projects/php/benchmarks/file-vs-fgets/) > using file_get_contents is upto 6 times faster (?) in > some cases..

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Curt Zirzow
* Thus wrote lists: > I"m kinda bummed, I tried to us it last night and discovered I could > not use it because Pair Networks disables the ability, can't include > either. > > from their newsletter: > > "Lately, the most common method of exploit has been to pass a variable > to a PHP script wh

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
I did look at the fopen option...but it just seemed a little longer and more complicated to do that plus according to this benchmark (http://force-elite.com/~chip/projects/php/benchmarks/file-vs-fgets/) using file_get_contents is upto 6 times faster (?) in some cases.. I think I'll stick with this

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
Oops, sorry to hear that. Some scumbag always spoils it for everyone :-( Looks like you can enable it if you really need it though.. Mag --- lists <[EMAIL PROTECTED]> wrote: > I"m kinda bummed, I tried to us it last night and > discovered I could > not use it because Pair Networks disables th

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Greg Donald
On Mon, 11 Oct 2004 08:40:09 -0700 (PDT), Mag <[EMAIL PROTECTED]> wrote: > Interesting, so what is more backwards compatable? or > to put it in another way, what did you change on your > servers so that your app worked without > file_get_contents? I used the usual fopen(), fgets(), fclose() combin

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread lists
I"m kinda bummed, I tried to us it last night and discovered I could not use it because Pair Networks disables the ability, can't include either. from their newsletter: "Lately, the most common method of exploit has been to pass a variable to a PHP script which does not sufficiently check the v

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
Hey, > On Mon, 11 Oct 2004 07:24:03 -0700 (PDT), Mag > <[EMAIL PROTECTED]> wrote: > > $url=file_get_contents("http://www.yahoo.com/";); > > > > The thing is, it takes quite some time (2-5 secs) > > before the contents are in my program (I am using > my > > local webserver on my desktop for testi

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Greg Donald
On Mon, 11 Oct 2004 07:24:03 -0700 (PDT), Mag <[EMAIL PROTECTED]> wrote: > $url=file_get_contents("http://www.yahoo.com/";); > > The thing is, it takes quite some time (2-5 secs) > before the contents are in my program (I am using my > local webserver on my desktop for testing...not a > webserver)

[PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
Hi, I am using a statement like this $url=file_get_contents("http://www.yahoo.com/";); The thing is, it takes quite some time (2-5 secs) before the contents are in my program (I am using my local webserver on my desktop for testing...not a webserver) My questions are for you more experienced guy