Thanks!
Below is my code
Code: Select all
function GetPictures($dir)
{
$picturearray=array();
if (is_dir($dir))
{
if ($dh = opendir($dir))
{
while (($file = readdir($dh)) !== false)
{
if(!strpos($file,'small_'))
{
$picturearray[]=$file;
}
}
closedir($dh);
}
}
return $picturearray;
}