Re: Quick file_get_contents() questions...your opinion needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, and specify that anybody
running this code should have php 4.3.x or higher 

Most webhosts too I think will have a 4.3 or above
version...if they are a good host anyway, or....not?
I mean I have been running php on my desktop for
months and have 4.3.1..

Feel free to correct me :-)

Cheers,
Mag


--- Greg Donald <destiney@xxxxxxxxx> wrote:

> On Mon, 11 Oct 2004 08:40:09 -0700 (PDT), Mag
> <genphp@xxxxxxxxx> 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()
> combination which has been
> available since PHP3.
> 
> 
> -- 
> Greg Donald
> Zend Certified Engineer
> http://gdconsultants.com/
> http://destiney.com/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


=====
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux