$path=$_SERVER['DOCUMENT_ROOT'].'/wallpapers/'; $number =`find '$path' -type f -regex '.*t_.*jpe?g$' | wc -l` /1;