Talk:CURL

From DreamHost

Jump to: navigation, search

Alternative to fopen()

Does anyone know if there's any convenient CURL alternative to the disallowed fopen() function? Preferably one that people using a script that employs that function could simple do a find-and-replace for? That would make a really good addition to this entry -- I know I've bumped up against that restriction several times, and while the wiki entry on fopen says CURL can be used as an alternative, it doesn't give any idea how. Spidersilk 13:07, 8 Nov 2006 (PST)

Unfortunately the design of CURL is such that a simple drop-in replacement is not readily available (actually, it's the design of fopen that makes the conversion less than trivial.) I'm sure somebody could write a PHP function that would cover many cases though. If one turns up, feel free to add it. --Sabrejack 13:32, 8 Nov 2006 (PST)
A good alternative (to curl also) is Snoopy, which is what WordPress uses by default.

Dreamidol 17:58, 25 November 2007 (PST)

Personal tools