Re: Re: Curl Question

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

 



Thanks for the info!

Manuel Lemos wrote:

Hello,

on 01/03/2006 06:52 PM Ray Hauge said the following:

I just wanted to see if anyone knew if there was any difference in performance between using curl in an exec() statement and when using the libCurl functions within PHP.


Executing a separate program should be a little slower as it adds some overhead before executing a request. Actually, in some cases it can be a little faster to use fsockopen instead of libcurl as it is one less library to load.

You may also want to take a look at this HTTP client class that uses fsockopen everytime it is possible and only uses libcurl functions in certain cases. This class takes care of cookie handling, redirection, form posting, file uploading, etc..

http://www.phpclasses.org/httpclient



--
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