ssh da iken

cat access.log | grep \.gif

komutunu verirsen görürsün.

foreach (file('access.log') AS $value)
{
	if (preg_match("#\.gif#i",$value))
	{
		echo $value.'<br>';
	}
}