Please help! I can't figure this out.
Posted: Thu Nov 03, 2005 7:16 pm
Hey guys,
This is a script for an AIM buddy icon site I'm making.
I honestly have no idea how I can make it so that it displays each buddy icon in its own table cells with 5 cells going across.
I'm sorry but I'm just absolutely stumped, can anyone help me?
Thanks,
drik
This is a script for an AIM buddy icon site I'm making.
Code: Select all
<?
//get directory handle
$hook = opendir("icons");
//read directory and echo list
while (($file = readdir($hook)) !== false)
{
if ($file != "." && $file != "..")
{
//set up full path
$path = $location."/".$file;
//check for directory
if (is_dir($path))
{
echo "<a href=aim:BuddyIcon?src=http://www.mysite.org/imsite/gallery/icons/$file><img src=http://www.mysite.org/imsite/gallery/icons/$file border=0></a>";
} else {
echo "<a href=aim:BuddyIcon?src=http://www.mysite.org/imsite/gallery/icons/$file><img src=http://www.mysite.org/imsite/gallery/icons/$file border=0></a>";
}}}
//close directory
closedir($hook);
?>I'm sorry but I'm just absolutely stumped, can anyone help me?
Thanks,
drik