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.

Leave a Reply