Yes, it´s empty. This archive must be filling while the users doing markers.
The tags are defined ok New error!!! Fatal error: Call to undefined method SimpleXMLElement::saveXML() in / expert/htwebs/www1/ftprosas/www.ros-asociados.com/ejemplo-jesus/ maps_form.php on line 20 (sorry for my english) El 28/10/2008, a las 13:58, Björn Brala escribió: > http://www.ros-asociados.com/ejemplo-jesus/markers.xml > > Is an empty file? > > 2008/10/28 isusko <[EMAIL PROTECTED]> > yes, sorry, i´m desesperated > > Look the example please www.ros-asociados.com/ejemplo-jesus/ > maps_form.php > > It must be reading the markers of "markers.xml". > The page uses jQuery "jquery-1.2.6.min.js > > All is publicated in this url: > www.ros-asociados.com/ejemplo-jesus/maps_form.php > www.ros-asociados.com/ejemplo-jesus/markers.xml > www.ros-asociados.com/ejemplo-jesus/jquery-1.2.6.min.js > > The map is loading good, bur whe you click on SAVE .... all is > broken, Please look by yourself > > > > $xml = new SimpleXMLElement($fh); > > The header of the web > <?php > > if(isset($_POST['submit'])) { > $fh = file_get_contents('markers.xml'); > > try { > $xml = new SimpleXMLElement($fh); > } catch (Exception $e) { > echo $e->getMessage(); > } > > $marker = $xml->addChild('marker'); > $marker->addAttribute('lat', $_POST['lat']); > $marker->addAttribute('lng', $_POST['lng']); > $marker->addAttribute('msg', utf8_encode($_POST['msg'])); > $marker->addAttribute('name', utf8_encode($_POST['name'])); > $marker->addAttribute('link', utf8_encode($_POST['link'])); > > $fp = fopen('markers.xml','w'); > fwrite($fp, $xml->saveXML()); > fclose($fp); > header('Location:maps_form.php'); > } > > ?> > > > > El 28/10/2008, a las 13:51, Björn Brala escribió: > >> I think the awnser is 42. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> On a more serious note, read the posting guide lines, its hard to >> awnser anything without any information. >> >> 2008/10/28 iSus <[EMAIL PROTECTED]> >> >> String could not be parsed as XML >> Fatal error: Call to a member function addChild() on a non-object >> in / >> expert/htwebs/www1/ftprosas/www.ros-asociados.com/ejemplo-jesus/ >> maps_form.php on line 12 >> >> >> Anyone can help me please????? >> >> >> >> >> >> >> -- >> Bjorn Brala >> ---------------- >> GeoStart.nl- Google maps - Swis Webdesign >> >> >> >> > > > > > > > -- > Bjorn Brala > ---------------- > GeoStart.nl- Google maps - Swis Webdesign > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
