On 10/14/05, Richard Lynch <ceo@xxxxxxxxx> wrote:> I can understand that file_get_contents is going to add SOME overhead,> but 3 seconds sounds a bit "too much" Yeah, it's like half a second or so of overhead when I test it against wget: > for x in 1 2 3 4 5; do php -r 'system( "time `wget yahoo.com >/dev/null 2>&1`" );'; time php -r 'file_get_contents( "http://yahoo.com" );'; done real 0m0.462suser 0m0.006ssys 0m0.011s real 0m0.999suser 0m0.164ssys 0m0.222s real 0m0.343suser 0m0.009ssys 0m0.006s real 0m0.976suser 0m0.162ssys 0m0.225s real 0m0.337suser 0m0.007ssys 0m0.010s real 0m1.182suser 0m0.158ssys 0m0.230s real 0m0.340suser 0m0.007ssys 0m0.010s real 0m0.969suser 0m0.159ssys 0m0.226s real 0m0.336suser 0m0.011ssys 0m0.007s real 0m0.978suser 0m0.160ssys 0m0.225s --Greg DonaldZend Certified EngineerMySQL Core Certificationhttp://destiney.com/