KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an index.php file which has to process many different file types. How do I guess the filetype based on the REQUEST_URI ? If I request http://site/image.jpg , and all requests redirect through index.php , which looks like this <?php include('/www/site'.$_SERVER['REQUEST_URI']); ?> How would I make that work correctly? Should I test based on the extension of the file requested, or is there a way to get the filetype?
Tags (comma-separated)
Save Edits
Cancel