Running GNL.tv with PHP5

Unfortunately the xmlrpc Library used by the GNL.tv web standings display is not compatible with PHP5 and the library seems to be no longer supported by its developer. So if you want to run GNL.tv with PHP5 you need to patch that library, which is actually pretty easy to do.

Open the file xmlrpc.php in your favorite text editor and go to line 436. You should now see the following code:

$this = &$array["methodResponse"]["fault"]["value"]["struct"]["member"];
$this[0]["name"] = "faultCode";
$this[0]["value"]["int"] = $faultCode;
$this[1]["name"] = "faultString";
$this[1]["value"]["string"] = $faultString;

We need to rename $this to $temp, so change the above lines to this:

$temp = &$array["methodResponse"]["fault"]["value"]["struct"]["member"];
$temp[0]["name"] = "faultCode";
$temp[0]["value"]["int"] = $faultCode;
$temp[1]["name"] = "faultString";
$temp[1]["value"]["string"] = $faultString;

That’s it. Now everything should work fine in PHP5.

This entry was posted in GNL.tv and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

For spam filtering purposes, please copy the number 5186 to the field below: