<?php
/*******************************************************************
Name    :function del_nday_file($x)

    Delete older than x day files in the ./temporary folder.

Return    :(str)$status
********************************************************************/
function del_nday_file($x){
$status shell_exec("/usr/bin/find ./temporary -type f -mtime +$x -print0 | xargs -0 /bin/rm");
return (
$status);
}
?>