Need help replacing allow_url_fopen with cURL in a plugin.
-
I have a plugin that uses
allow_url_fopen
, but my host (Dreamhost) has disabledallow_url_fopen
but allows cURL.I think I’ve isolated the problematic code:
$content = @file_get_contents($this->url);
if(!$content) {
echo "<!-- BDPFeed could not open ".$this->url." -->n";
return FALSE;
}What I need to know is how to go about replacing the
@file_get_contents
function with its cURL equivalent.Anyone have any ideas? (I’m *not* a hardcore coder.)
Thanks in advance,
MJPS: If anyone is interested, the plugin I’m trying to hack is BDP RSS Aggregator v 0.2.2 and the file the above code is from is bdp-rssfeed.php
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Need help replacing allow_url_fopen with cURL in a plugin.’ is closed to new replies.