is there a way to add a php script (file) in cron for running this script every ten minutes or at a scheduled time?
cause i want the user to be able to schedule when to send newsletter to a lot of emails he choses.
so i have to create a cron job from php to run a php file on that scheduled time.
is this possible if you have a shared web hosting environment (not vps)
If you script filename is news.php and in /home/user/news.php
crontab line seems like to be:
If you want dont run this in every minute.
You can edit * with from left (m, h, dom, mon, dow)
But you cant do this if only you have same web hosting,
you must have access to shell or other way to configure
your crobtab file (maybe from your provider access panel)
But you can run crontab job on other server to run your news.php by the apache over http protocol. In this option your crontab job on remote server must run your script by the web. Eg. wget is a good option for it: