Question: |
Hello. Need to do automatic cleanup of the directory on the server at the time. I believe that it is necessary in the control panel, Vesta, under crowns, ask rule. That`s just not really imagine how to do it. |
Answer: |
Hello. Kron Job runs the script at a specified interval. You have such a script that will delete files in aapko? Have you checked his work? |
Question: |
No, such a script ready no. Wonder if that can be prescribed in CZK to, say, every day at 3 a.m. was purified in a directory cache |
Answer: |
First, create a script, and in the crown you just point the path to this script and the time interval of execution. |
Question: |
Hello again. Returning to the subject. I probably didn`t pose the question. Required cron task in control panel to remove files from a particular category at the time, not a php script, connected and running at the time. |
Answer: |
cron only runs on schedule a certain script, he can neither copy nor delete. Ie in order that were disposed should be a script that deletes. |