hai guys, As i am a newbie i want to check a file path is an image or not <? if(strpos($row[\'dfilepath\'],\'jpg\') != false)