I'm trying to run a .php file from the browser to see if it works. The .php fishes thru a directory for .gif and .jpg files and then creates an .xml file and saves it to the directory. For some reason my code creates the .xml file but the content of the file isn't the image data. This is what it produced:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
<channel rdf:about="">
<title></title>
<link></link>
<description></description>
<dc:language></dc:language>
<dc:rights></dc:rights>
<dc:date></dc:date>
<dc:creator></dc:creator>
<dc:subject></dc:subject>
<items>
<rdf:Seq></rdf:Seq>
</items>
<image rdf:resource=""/>
</channel>
</rdf:RDF>
I thought the code would return the filenames of the images from the directory.
Can someone help me with this one please.