Hi,
I am trying to make a xml-rpc client & server for the oscommerce script. but when i m trying to invoke it, it is giving me this error
Code:
PHP Fatal error: Call to a member function read() on a non-object in C:\\Program Files\\EasyPHP 2.0b1\\www\\oscommercev3\\includes\\classes\\database.php on line 487
Line 487 of database.php is this
PHP Code:
function execute() {
global $osC_Cache;
if (isset($this->cache_key)) {
if ($osC_Cache->read($this->cache_key, $this->cache_expire)) {
$this->cache_data = $osC_Cache->cached_data;
$this->cache_read = true;
}
}
There is a file application_top.php which instantiate $osC_Cache.
when i include application_top.php in normal php functions file, it works perfectly but when i use in xmlrpc server file then it gives me above error.
Can anybody suggest me a solution??