Avoid directory traversal attacks in PHP

Directory Traversal Attacks and File Access