I am installing PHPProBid Auction Script and suddenly I get this error:
Fatal error: Call to undefined function Cube\Config\simplexml_load_file() in /home/admin/webserendibite.ir/library/Cube/Config/Xml.php on line 60
Configuration:CentOS 5,Apache httpd,php 5.6,froxlor panel php info page: http://www.webserendibite.ir/phpInfo.php ionloader installer page :http://webserendibite.ir/ioncube/loader-wizard.php
and here is this function:
/** * * convert input into \SimpleXMLElement, then process the xml into an array * * @param mixed $input the input variable, it can be a path to an xml file, a string in xml format or an object of type \SimpleXMLElement * @return \Cube\Config\Xml */
public function setData($input)
{
$xml = null;
if ($input instanceof \SimpleXMLElement) {
$xml = $input;
}
else if (file_exists($input)) {
$xml = simplexml_load_file($input);
}
else {
$xml = simplexml_load_string($input);
}
$this->_data = json_decode(json_encode((array)$xml), 1);
return $this;
}
I appreciate any help :)