Garethp Posted October 8, 2009 Share Posted October 8, 2009 Which is faster? I'm making an RSS feed which pulls data from another website, and then will run that data through RegEx to make an RSS feed, and I was wondering which was faster, file_get_contents or cURL? Link to comment https://forums.phpfreaks.com/topic/176935-solved-file_get_contents-vs-curl/ Share on other sites More sharing options...
MadTechie Posted October 8, 2009 Share Posted October 8, 2009 Maybe try some benchmarking yourself! I'll guess and say file_get_contents Link to comment https://forums.phpfreaks.com/topic/176935-solved-file_get_contents-vs-curl/#findComment-932882 Share on other sites More sharing options...
salathe Posted October 8, 2009 Share Posted October 8, 2009 I'd hazard a guess that the external website is going to be more of a factor in determining speed (or bottlenecks) versus which of the two approaches you use. It wouldn't take much to code up both methods and properly evaluate them, to find out an answer for yourself for your particular situation. Link to comment https://forums.phpfreaks.com/topic/176935-solved-file_get_contents-vs-curl/#findComment-932925 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.