You are here: Re: when does it ever make sense to use curl? « PHP Programming Language « IT news, forums, messages
Re: when does it ever make sense to use curl?

Posted by Andy Jeffries on 05/18/06 10:46

On Wed, 17 May 2006 20:46:16 -0700, lawrence k wrote:
> I'm reading over this page:
>
> http://www.php.net/manual/en/ref.curl.php
>
> What I'm missing is why? What problem does curl solve? What does it make
> easier? When would I use its functions, instead of simpler functions like
> file() or fsocketopen()?

Curl automatically handles session cookies if you're retrieving multiple
pages for a different site.

Curl is a known web page connection interface, using the file() interface
with allow_url_fopen (to enable fopen to open web pages) can lead to
security holes (particularly with some dodgy register_globals code).

Cheers,


Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

 

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

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