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 Link to comment https://forums.phpfreaks.com/topic/155097-photobuket-images-sorting/ Share on other sites More sharing options...
soak Posted April 21, 2009 Share Posted April 21, 2009 Can you show us some code? Link to comment https://forums.phpfreaks.com/topic/155097-photobuket-images-sorting/#findComment-815840 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 Link to comment https://forums.phpfreaks.com/topic/155097-photobuket-images-sorting/#findComment-815851 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.