Jagmeet Posted April 21, 2009 Share Posted April 21, 2009 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 Quote Link to comment Share on other sites More sharing options...
soak Posted April 21, 2009 Share Posted April 21, 2009 Can you show us some code? Quote Link to comment Share on other sites More sharing options...
Jagmeet Posted April 21, 2009 Author Share Posted April 21, 2009 plzz chk code i main/first post Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.