that funny i hat ethe same problem the other day i made the script that will make the text i mean you woul dhave to make little tweaks to it but can you give me the link to the script that does that please if you dont mind. here is the script that you have to tweek to get the fiels from the folder
PHP Code:
<?php
if ($handle = opendir('pics/test/'))
{
$url ='pics/test/';
/* This is the correct way to loop over the directory. */
$i=0;
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
// print "<br>";
echo "leftrightslide[", $i , "]='<img src=\"" , $url , "/" , $file , "\" border=1>'";
$i++;
}
else
{
$i=0;
}
}
closedir($handle);
}
?>
this is what it outputs
[HMTL]
leftrightslide[0]='<img src="pics/test/Picture 021.jpg" border=1>'
leftrightslide[1]='<img src="pics/test/Picture 031.jpg" border=1>'
leftrightslide[2]='<img src="pics/test/Picture 007.jpg" border=1>'
leftrightslide[3]='<img src="pics/test/Picture 002.jpg" border=1>'
leftrightslide[4]='<img src="pics/test/Picture 004.jpg" border=1>'
[/HTML]
can you hook me up with the script that you have
|