Clicks and Bits

My collection of links and information.

Lylina Patch for Dreamhost

Filed under: Applications, RSS — Shawn at 8:49 am on Tuesday, March 13, 2007

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.

1 Comment »

Pingback by DreamHost Web Hosting » Lylina Patch for Dreamhost

September 3, 2008 @ 3:59 am

[...] Original post by Shawn [...]

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>