Menu

#2 a "toFile' method

open
nobody
5
2003-07-25
2003-07-25
Anonymous
No

I've just wrote a toFile( $filename ), for the PHP
MiniXML...

Not a lot of effort, but it's works:

function toFile ($filename)
{
$fp = @fopen($filename, "w");

if (MINIXML_DEBUG > 0)
{
_MiniXMLLog("Saving object to cache as '$filename'");
}

if ($fp)
{
fwrite($fp, $this->toString());
fclose($fp);
} else {
_MiniXMLError("Could not open $filename for write in
MiniXMLDoc::saveToCache()");
}
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.