Hi Frnds
I m Using Photobuket Album ..... when i connect to Photobuket through Php FTP script connection .... in image sorting m getting 1 problem.
Example:
1.jpg (Main Image)
2.jpg
3.jpg
th_1.jpg (Main Images Thumbnail)
th_2.jpg
th_3.jpg
Prob: my script also showing "Thumbnail Pics" but i want to sort only "Main Image"
How can i set Files Sorting Filter .... plzz give me php Filter Function who filter and Remove "th_1.jpg, th_2.jpg, th_3.jpg" from sorting and show only "1.jpg, 2.jpg, 3.jpg"
$dir = "http://Photobuket.com/anyalbum";
$filearray = array();
if ($fil = opendir($dir))
{
while (($file = readdir($fil)) !== false)
{
//if ($file != "." && $file != "..")
if (strpos($file, '.jpg',1)||strpos($file, '.gif',1) )
{
$filearray[] = $file;
rsort($filearray);
}
}
waiting 4 reply