PHP's $ FILES and $ ENV variables are two different ways of referencing the same thing:
- In PHP, the functions for accessing files in the filesystem are located in the file_get_contents() function. This function is used to get a file from the filesystem and return it as an array or string. The function can be called with either a path or filename as its first argument. The second argument is optional and will default to $_GET['file'].
- The difference between $ FILES and $ ENV is that $ FILES returns an array of all files on your filesystem while $ ENV returns a single value that represents a directory on your filesystem.