salut à tous,

je suis incompétent en php, surtout en php5, j'ai utilisé des fichiers en open source et une fois installés sur mon espace perso free voilà le type de l'erreur :

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1041: parser error : ParsePI: PI xml-stylesheet never end ... in /mnt/147/sda/5/7/guilde.mysticals/armory/_armory.php5 on line 93

Warning: simplexml_load_string() [function.simplexml-load-string]: in /mnt/147/sda/5/7/guilde.mysticals/armory/_armory.php5 on line 93

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /mnt/147/sda/5/7/guilde.mysticals/armory/_armory.php5 on line 93

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1041: parser error : Start tag expected, '<' not found in /mnt/147/sda/5/7/guilde.mysticals/armory/_armory.php5 on line 93

Warning: simplexml_load_string() [function.simplexml-load-string]: in /mnt/147/sda/5/7/guilde.mysticals/armory/_armory.php5 on line 93

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /mnt/147/sda/5/7/guilde.mysticals/armory/_armory.php5 on line 93

Fatal error: Call to a member function xpath() on a non-object in /mnt/147/sda/5/7/guilde.mysticals/armory/create_sig.php5 on line 85

je vous copie/colle la fonction :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
function getArmoryDataXML($url) {
	global $xmlDataCache;
	if(!$xmlDataCache[$url]) {
		$data = getCachedXML($url);
		if(!$data) {
			$f = "";
			if(USE_CURL) {
				$ch = curl_init();
				$timeout = 30; // set to zero for no timeout
				$useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1";
				curl_setopt ($ch, CURLOPT_URL, $url);
				curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
				curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
				curl_setopt ($ch, CURLOPT_USERAGENT, $useragent);
				$f = curl_exec($ch);
				curl_close($ch);			
			} else {
				$f = file_get_contents($url);
			}
			$xml = simplexml_load_string($f);
			if($xml)
				setCachedXML($url, $f);
		} else {
			$xml = @simplexml_load_string($data);
			if(!$xml) {
				$f = file_get_contents($url);
				setCachedXML($url, $f);
				$xml = simplexml_load_string($f);
			}
		}
		$xmlDataCache[$url] = $xml;		
	}
	return $xmlDataCache[$url];
}
ça me dépasse complètement, c'est du chinois pour moi, auriez vous une idée de l'origine du mal svp ?