Hi, I want to write a php script that will grab a file from someone's computer and either reference it or display it. I'm sure I can find the code to do this, but what do I have to be careful about security wise? Is there a way to tell if something is a .exe or .php? If a php file is rename to something.jpg and they try to run it, will the script run or will it treat it as a jpeg?
Is there any sample code out there for something like this?