<?php
header("Content-Type:text/xml");
$pocztaek .= '<?xml version="1.0" encoding="UTF-8" ?>
<simpleviewergallery useFlickr="false" resizeOnImport="true" cropToFit="false" thumbPosition="BOTTOM" thumbRows="1" thumbColumns="7" showOpenButton="true" showFullscreenButton="true" backgroundColor="EBE2C2" backgroundTransparent="false" galleryStyle="MODERN" frameWidth="5">
';
$directory = "image/";
$images = glob("" . $directory . "*.jpg");
foreach($images as $image) {
$tresc .='
<image imageURL="images/' . $image . '.jpg" thumbURL="m_' . $image . '" linkURL="images/' . $image . '" linkTarget="_blank">
<caption>
<![CDATA[
]]>
</caption>
</image>
';
}
$koniec .='</simpleviewergallery>';
Nie mam pojecia co tu jeszcze jest nie tak
$caly = $poczatek+$tresc+$koniec;
$file = fopen ('gallery.xml', 'w+'); ?>
To jest cały kod a to jest błąd
Błąd parsowania XML: niezrozumiała seria znaków po elemencie dokumentu
Obszar:
http://localhost/xml_php/jestemXML-em.phpNumer linii: 2, kolumna 1:<font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
^