12
Apr
09

[PHP/XML] Image Gallery

Wrote a function today to parse an XML file to create an image gallery table:
http://sim0n.net46.net/files/Image%20Gallery.php

The XML files structure is set up like this, similar to that of an RSS feed:

<?xml version="1.0" encoding="iso-8859-1"?&gt;
<channel>
	<thumb></thumb>
	<name>sim0n Gallery RSS</name>
	<date></date>
	<description>sim0n Gallery RSS</description>
	<link>https://sim0n.wordpress.com</link>
	<item>
		<thumb>Clouds_thm.jpg</thumb>
		<name>Clouds - Seamless 1 Tile</name>
		<date>12 April 2009</date>
		<description><![CDATA[A 1-image seamless tile that can be used as a repeating texture or background]]></description>
		<link>Clouds.html</link>
	</item>
	<item>
		<thumb>Meadow_thm.jpg</thumb>
		<name>Meadow - Seamless 2 Tile</name>
		<date>12 April 2009</date>
		<description><![CDATA[A 2-image seamless tile that can be used as a repeating texture or background]]></description>
		<link>Meadow.html</link>
	</item>
</channel>

It turned out quite nicely, now all i need to do is implement an easy way for me to add items to the gallery, shouldn’t be too hard.

Advertisements

0 Responses to “[PHP/XML] Image Gallery”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: