I get a file path to a user file and I want to make sure that this path is to a valid existing user file and not to something bogus or a system file or something like that.
I know I can use file_exists to check that it exists, but I'm not sure how I should make sure that the file is in a certain sub-directory...