Pretender


: 22.04.2004 : 1077 : Naumburg
|
| : 17.01.2005, 20:11 : htmlentities oder htmlspecialchars |
|
|
| Code: |
<?php
$rdffile = "hier steht die xml url";
$content = implode ("", file ($rdffile));
$content = html_entity_decode($content);
preg_match_all("|<product(.*)>(.*)</product>|Uism",$content, $items, PREG_PATTERN_ORDER);
for ($i=0;$i<count($items[0]);$i++)
{ preg_match_all(
"|<name>(.*)</name>(.*)<description>(.*)</description>(.*)<imageUrl>(.*)</imageUrl>(.*)<productUrl>(.*)</productUrl>(.*)<price>(.*)</price>(.*)<currency>(.*)</currency>|Uism",$items[0][$i], $regs, PREG_PATTERN_ORDER);
echo
"<img align=left width=110 height=110 alt=Laptop-Dell-im-Laptop-Shop src='".$regs[5][0]."'>
<h1>".html_entity_decode(utf8_decode($regs[1][0]))."</h1>
".html_entity_decode(utf8_decode($regs[3][0]))."<br>
Preis: ".utf8_decode($regs[9][0])."
".utf8_decode($regs[11][0])."
<br>
<a href='".utf8_decode($regs[7][0])."' target='_blank'>Klicken Sie hier für alle Details</a><br><br><br><br><br><br><br>\n"; }
?> |
tjo was soll ich sagen... damit geht es astrein
einfach nur KEWL! 
bye Pretender |
|