|
Posted by Manuel Lemos on 01/03/06 23:03
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
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
[Back to original message]
|