-2

php script works if someone request it right? so how i can make php script delete files after 1h for example without need to wait someone to request the script.

brombeer
  • 8,716
  • 5
  • 21
  • 27
Scie Nce
  • 3
  • 1

1 Answers1

1

Consider a cron job on your server. You can either use that to call a php script that deletes file of x time old or write a bash script to do it. No additional action would then be required.

AppHandwerker
  • 1,758
  • 12
  • 22