MyBB Community Forums

Full Version: Cron Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can you set a cron script to visit a website.

ex. http://www.example.com/phpscriptexcution.php
Yes you can.
Alright thank you.
If I were to do this, Would I just put http://www.sitename.com/script.php in the command box?
You might have to add curl in the front. (or wget/lynx)
So, show me the syntax I would put in the Command Area...
Would this work?
php /path/to/script/script.php
If you're using cPanel, (not sure if this works on other control panels) but I use the follow, and it works perfectly for me.

curl -s "http://example.com/your_cron_script.php"
I use CPanel, and do I include the Quotes?
Yes, include the quotes.
Alright thank you. Lets see if it works.
Thanks Coffee, it works.