Zend Framework comes with set of classes for filtering file contents as well as performing other actions, such as file renaming.
Note
All of the File Filter Classes' filter()
methods support both a file path string or a $_FILES
array as the supplied argument. When a $_FILES
array is passed in, the tmp_name
is used for the file path.