You are here: Re: Curl Question « PHP « IT news, forums, messages
Re: Curl Question

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация