Salut à tous,
J'ai un problème avec DomDocument, ca marche très bien sur mon hebergeur mais chez moi ca me marque
Warning: domdocument::domdocument() expects parameter 2 to be long, string given in
D:\Mes documents\Ludo\Programmation\www\Business computing\Vintage auto\extrait_filemaker.php on line
1Fatal error: Call to undefined method domdocument::load() in
D:\Mes documents\Ludo\Programmation\www\Business computing\Vintage auto\extrait_filemaker.php on line
2
J'ai regarder chez google, il y en a qui dise que c'est avec l'encodage de domdoc:
$dom=new DOMDocument("1.0","charset=iso-8859-1");
$dom->load('filemaker.xml');
d'autre qui dise que ca marche avec mamp, d'autre qui dise que ca marche pas, je ne sais pas trop quoi faire en fait, j'ai activer mes extensions
PHP_domXML et
php_xmlrpc sinon apparament c'est galère je me demande si il n'y a pas une autre facon de lire un fichier XML j'ai ma structure qui est comme ca:
<ROW MODID="4" RECORDID="63701">
<Categorie>AUDI</Categorie>
<Couleur></Couleur>
<Kilom>33 400</Kilom>
<Interieur></Interieur>
<Marque>AUDI</Marque>
<Mill>2006</Mill>
<Note_fiche></Note_fiche>
<nom></nom>
<Num_Voiture>759</Num_Voiture>
</ROW>
<ROW MODID="1" RECORDID="63167">
<Categorie>CHRYSLER</Categorie>
<Couleur>NOIR</Couleur>
<Kilom>15 390</Kilom>
<Interieur></Interieur>
<Marque>CHRYSLER</Marque>
<Mill>2004</Mill>
<Note_fiche>cuir-bva-gps-</Note_fiche>
<nom>
<DATA>911 2,2 s 2.JPG</DATA>
<DATA>911 2,2 s 3.JPG</DATA>
<DATA>911 2,2 s 4.JPG</DATA>
<DATA>911 2,2 s int.JPG</DATA>
</nom>
<Num_Voiture>595</Num_Voiture>
</ROW>
Merci d'avance