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
| SitePoint Sponsor |
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
Internet Consultant with 8 Years Experience
Business Idea/Partnerships contact me, m@zii.com
AIM: MattFS218 / ICQ: 5138409




Hi Matt,
Evidently the advisors/moderators here don't know the difference between a javascript question and a php question. Perhaps you should repost in the server side forum? Offhand, though, I would say you could perform an indexOf operation on the request string and compare it with the extensions you are looking for.
Vinny
moderator at:Webxpertz Forums
Bookmarks