Lylina Patch for Dreamhost
If you are using Lylina (the open source RSS aggregator) and are hosting with Dreamhost, use the following code fix to enable functionality on Dreamhost.
Open discovery.php in your text editor of choice and jump to line 46. Remove the following:
$get_feed = file_get_contents($url);
Replace with (remove the spaces from ‘e x e c’):
$ch = curl_init(); $timeout = 5; // set to zero for no timeout curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $get_feed = curl_e x e c($ch); curl_close($ch);
Save and upload discovery.php and you should be all set.
Reasoning: Dreamhost disable file_get_contents() as a security precaution (mainly to thwart clueless webmasters from calling files via querystrings) and relies upon cURL to achieve the same effect. My fix makes that change and should have little to no effect on overall Lylina performance.
*Please note: I am not a developer of Lylina. Please direct any support issues to the Lylina SourceForge project forum.