...

View Full Version : Which do you use most and why: fsockopen, curl, fopen, file_get_contents



jeddi
10-23-2009, 07:55 AM
Out of these, which one do you use most and why ?

fsockopen, curl, fopen, file_get_contents,

Out of these, which one do you use most and why ?

karlosio
10-23-2009, 12:14 PM
Out of these, which one do you use most and why ?

fsockopen, curl, fopen, file_get_contents,

Out of these, which one do you use most and why ?

Its all a matter of personal preference really, out of those file_get_contents would probably have to be the easiest to understand and its the one I prefer to use but I've read curl can be useful however I haven't delved into it yet.

jeddi
10-23-2009, 01:11 PM
Thanks for your comment.

There are many occasions when you can get your result
using 2 or 3 of these methods and you need to decide which
is the most appropiate one to select.

I have not used fsockopen, but the others I have used
and want to learn more from experienced coders.

Knowing the reasons for selecting one function over another
for a certain task will be helpful so thanks again
for you input :)

kbluhm
10-23-2009, 02:27 PM
I tend to use whichever is necessary and completes the task most efficiently.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum