#!/bin/bash
# name   : php_upload_tmp_dir_clean
# purpose: remove temporary uploaded files if they have not been touched for MIN minutes
#
# see also /etc/php.ini: upload_tmp_dir 
#

MIN=60*12
find $APL/var/tmp/php -type f -mmin +$MIN | xargs rm