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