Is there a way to tell if an http/web request is a html document or an gif/jpeg or other image type media in PHP? Can I please get an example.

Matt