On Thu, 16 May 2002, Gerard Samuel wrote:
> I was about to modify a script that fetches files for xml content.  It 
> currently does so using fsockopen.
> I originally was going to use plain fopen, and I know that curl can also 
> be used.
> Im looking for preferences as to use one method over another.  Why one 
> is better than the other etc.
> Thanks for any input you may provide...

fopen() is less work and is more portable (doesn't require cURL to be 
built on the server) so if it works, excellent. Otherwise, cURL provides 
a huge amount of additional flexibility. But if you don't need it, it 
doesn't get you anything.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to