Hey all!
I customized NewsManager for my needs (added read more function)!
And it works perfect, but i saw the xml writing part and im not sure where the: XMLsave and @getXML comes from!
I need to know where that comes from, becasue i need it in one of my projects!
I customized NewsManager for my needs (added read more function)!
And it works perfect, but i saw the xml writing part and im not sure where the: XMLsave and @getXML comes from!
Code:
if (!file_exists($file)) {
$date = date('d. m. Y.');
} else {
$data = @getXML($file);
$date = $data->date;
}
$xml = @new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><item></item>');
$xml->addChild('title', $title);
$xml->addChild('date', $date);
$xml->addChild('short', $short);
$xml->addChild('content', $content);
XMLsave($xml, $file);
I need to know where that comes from, becasue i need it in one of my projects!