Hello,
I need to make a simple PHP script that reads the content of a folder and looks for jpg files, the outputs the value as an xml.
For example, my folder is:
/var/www/mysite/images/
That folder contains 3 images:
image1.jpg
image_hello_2.jpg
image_test_3.jpg
I need the PHP script to read that folder and output something like this
<image>
<filename>image1.jpg</filename>
</image>
<image>
<filename>image_hello_2.jpg</filename>
</image>
<image>
<filename>image_test_3.jpg</filename>
</image>
I google for something similar, but couldn't find anything. I know that's probably just some few lines of code. So if anyone know how to do this and want to share it, I'll appreciate it.
Thanks in advanced...