Well, you guys are awesome.
So the script below doesn't cause any errors (nice), however it doesn't save the newly added child to the xml file (items.xml):
$xml = simplexml_load_file("items.xml"); $item = $xml->addChild('item'); $item->addChild('name', $name); $item->addChild('desc', $desc); $item->addChild('size', $size); $item->addChild('price', $price); I thought it would ? would i need to "write" using fwrite ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php