Advertisement:

Navigation

SMF Mod Site

Mod Name:
cURL fetch_web_data
Created By:
aldo
Type:
Feature Enhancement
First Created:
December 21, 2008, 06:15:25 PM
Last Modified:
May 21, 2009, 06:22:07 PM
Latest Version:
1.1.1
Compatible With:
1.1.7, 1.1.8, 1.1.9, 2.0 Beta 4, 2.0 RC1, 2.0 RC1-1
Total Downloads:
3578

Download this mod

curl_fetch_web_data.zip (4kB) [1375]
curl_fetch_web_data11.zip (6kB) [1146]
curl_fetch_web_data111.zip (6kB) [980]
Manual Install Instructions for SMF

Description:

The function in Subs-Package.php fetch_web_data uses fsockopen() in order to obtain the data from the page specified. However not all hosts (usually free hosts) allow the usage of the fsockopen() function. 

So I have fixed that. This modification will allow the fetch_web_data(); function to use cURL to obtain the data instead. 

Of course not all hosts support cURL, but most hosts with PHP5 do have cURL installed. But don't worry, if your host doesn't support cURL but does fsockopen it will use fsockopen instead, but if thats the case you don't really need this mod.

NOTE: If you have no troubles downloading packages from external servers or getting SMF news data and such you don't need this mod as this is really a fix for servers that support cURL but have problems downloading packages and such.

Changelog:

  • 1.1.1 - Added support for SMF 2.0 RC1-1 (Not much changed)
  • 1.1 - Added support for SMF 2.0 RC1
  • 1.0 - Initially added