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

Posted by Curt Zirzow on 10/28/41 11:36

On Tue, Jan 03, 2006 at 01:52:44PM -0700, Ray Hauge wrote:
> Hello everyone,
>
> 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.

You might notice a difference if you loop though the code 100,000
times or so.

One advantage of using libCurl vs exec() is that you dont have to
worry about where the location of the actual 'curl' binary is:

exec('/usr/local/bin/curl');
exec('/usr/bin/curl');
exec('/bin/curl');
exec('C:/windows/curl.exe');
exec('C:/Program Files/Curl/curl.exe');
exec('X:/shared apps/curl/curl.exe')'
etc..

With libCurl, you just ensure that curl is enabled in php.

Curt.
--
cat .signature: No such file or directory

 

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

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