Hello.
I wish to run a cron script that executes a .php file, which will clear database logs. I have set up the script, but am not quite sure how to execute it with cron.
I've searched the forums, but am still confused. I do not know how to specify the URL path for the script. I think my domain is important, so that is avalanche.hell-yeah.net.
I have avalanche.hell-yeah.net/public_html/asn/scripts/clear_log.php
What exactly would I put as the URL for cron in order to execute that?
Thank you.
Also, how can I make sure only cron executes it and not a user viewing the page? CHMOD 700?
I wish to run a cron script that executes a .php file, which will clear database logs. I have set up the script, but am not quite sure how to execute it with cron.
I've searched the forums, but am still confused. I do not know how to specify the URL path for the script. I think my domain is important, so that is avalanche.hell-yeah.net.
I have avalanche.hell-yeah.net/public_html/asn/scripts/clear_log.php
What exactly would I put as the URL for cron in order to execute that?
Thank you.
Also, how can I make sure only cron executes it and not a user viewing the page? CHMOD 700?