i have a php file named "name.php which i want to run in every 5 minutes. I want to use crontab for this function. I have found a lot of tutorial but those all are really confusing to me. Everyone seems to use a crontab file and write like so ...
*/5 * * * * wget http://www.domainname.com/cronfile.php
but i really did not get it. Suppose i have a domain name "www.mydomain.com", so if i create a php file name.php how it be directed by www.mydomain.com/name.php.
Can anyone describe shortly how i should run my php file using crontab or wget.
i am running my project in symfony.
(I'd comment if I had enough reputation to clarify if you are running the file locally - but I think that you are.)
Here's now I do it:
*/5 * * * * /usr/bin/php /home/user/cronfile.php