men det giver følgende resultat <thumbnails> <thumbnail filename="test.png" label="min titel" url="test.php" /> </thumbnails> <thumbnail filename="test1.png" label="min titel1" url="test1.php" />
kan du så fortælle hvad der er galt med den her? Første gang jeg kører det virker det fint og opdatere xml som det skal men anden gang bliver jeg bomberderet med warnings
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 6: parser error : EntityRef: expecting ';' in C:\wamp\www\xmltest\test.php on line 17
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: g" label="Gibson Les Paul Custom Alpine White" url="index.php?choise=product&cat in C:\wamp\www\xmltest\test.php on line 17
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in C:\wamp\www\xmltest\test.php on line 17
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 6: parser error : EntityRef: expecting ';' in C:\wamp\www\xmltest\test.php on line 17
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: el="Gibson Les Paul Custom Alpine White" url="index.php?choise=product&cat=7&pid in C:\wamp\www\xmltest\test.php on line 17
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in C:\wamp\www\xmltest\test.php on line 17
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in C:\wamp\www\xmltest\test.php:17 Stack trace: #0 C:\wamp\www\xmltest\test.php(17): SimpleXMLElement->__construct('<?xml version="...') #1 {main} thrown in C:\wamp\www\xmltest\test.php on line 17
Husk at opdatering af XML filer og flere samtidige brugere er en farlig cocktail.
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.