topical media & game development
mashup-flickr-06-Exercise-1-gallery-info.php / php
<?php
include (dirname(__FILE__) . '/../lib/gallery.php');
function decodeHTML(s = str_replace("<", "<", s = str_replace(">", ">", s = str_replace(""", "\"", s = str_replace("&", "&", s;
}
function formatDateTaken(format = 'j F Y';
format, strtotime(formattedDate;
}
function formatDatePosted(format = 'j F Y';
format, formattedDate;
}
id = id))
{
gallery->getPhotoInfo(description = nl2br(decodeHTML(tags = description ?></div>
<ul class="photo-tags">
<?php
if (!empty(tags as tag['raw'] ?></li>
<?php
}
}
?>
</ul>
<div class="photo-date-taken">Taken on: <?php echo formatDateTaken(info['dates']['posted']) ?></div>
</div>
<?php
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.