What is the code to delete a file if entery date is 6 months older then current date.
unlink(filename) is used to delete a file.
You can check it at: php.net
use fstat to get the date of the file, and how to delete it is in the manual.