Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Empty screen -_-
#4
I have same problem.
json_decode (PHP 5 >= 5.2.0, PECL json >= 1.2.0).
i have PHP 5.1.6 so this is the issue.
There is workaround http://my.php.net/manual/en/function.jso....php#80606

I sujest to use some other method of comunication instead of json. This will make all hapy cos not much hosters have >=5.2.0

mb native php serialization?

UPD: in latest 2.02_RC1 vesrion there is some hardcoded fix:
Code:
/****************************************************
*
* @File:     basic.php
* @Package:    GetSimple
* @Action:    Functions used to help create the cp pages    
*
*****************************************************/
/*******************************************************
* @function json_decode
* @returns the API response in the form of an object
* @about - This is to temporarily fix issues with PHP versions < 5.2.0
*
*/
if(!function_exists('json_decode')) {
    function json_decode($api_data) {
        preg_match('/(?P<status>[^"]+)","((api_key":"(?P<api_key>[^"]+))|(latest":"(?P<latest>[^"]+)))/',$api_data,$api_data);
        return (object)$api_data;
    }
}
Reply


Messages In This Thread
Empty screen -_- - by DimkaStyle - 2010-08-08, 07:41:24
Empty screen -_- - by yojoe - 2010-08-12, 01:46:55
Empty screen -_- - by DimkaStyle - 2010-08-12, 04:11:37
Empty screen -_- - by USvER - 2010-08-25, 23:39:49



Users browsing this thread: 1 Guest(s)