How to run a php file from cron job via cpanel?
Stick to following steps:
1. login to your cpanel
2. click cron icon
3. click standard
4. enter your email address for reporting if the cron is failed
5. choose the time what you want
6. enter the command, it depends on your server hosting.
the command should be like this:
curl -s -o /dev/null http://yourdomain.com/your_script.php
if curl is disabled from your hosting service, you can try another way:
lynx -dump http://yourdomain.com/your_script.php
if curl and lynx are disabled from your hosting service, you can try another way:
/usr/bin/wget -O – /home/your_username/public_html/your_script.php
if curl, lynx and wget are disabled from your hosting service, you can try another way:
7. save it
if none worked from anything above then you are welcome to host with us – as we have all the above requirements to run cron jobs via cpanel in place already –
Having said that, I am a Steve-Jobs-Fan for his example of simple living and basic needs on daily basis, unlike many think that the second richest person in the USA would have the most out of his life before he dies, he didn’t.
A paradox that a living ‘demi-god’ as he was for many of you, wasn’t really treating himself like one. Yup! He pitched his merchandise like a persian-in-blood merchant from the 14th century convincing you to buy his merchandise (remember the persians were the most crafty sellers back in ancient times? ) and he always talked the straight line, like he constantly tried to calculate the shortest route between Point-A (aka a seller) and Point-B (aka a buyer), and finally we all know now that he secretly knew his last day that he will be with us until (maybe thats why he was in a hurry with all his awesome gadgetry to make sure we got it before he dies).
And this secret date is finally known to all of us: 10-5-2011 – the ‘ten-fiver’ as it will be memorized among those who praised and cherished the ‘biggest-denominator’ of all recent times – SPJ (Steve Paul Jobs) .
I tip my hat to you, Steve, for being the only good example of a positive stubbornness. You knew you will win the world ahead of the rest, and you ‘ruthlessly’ did win the world! Again, the world is NOT better off without you!!! What people cannot understand in their majority that a good pitcher in any game of pitching is the one that cannot be replaced quickly. There will be many years before a true same replacement will be found. I tried many times to get this point a cross of our customer minds that if Nash stops any development then there will be no true replacement found. There will be alot of fakers claiming they have the 150 or 500 features and mods all toggable and controlled from admin panel – but it will be many years wasted by you before you find any imaginable replacement for 25,000+ features and mods all toggable and controlled from admin panel that Nash got it done already for you to use on your site.
Rest In Peace, Steve! But the example you set will live forever in my heart!
Stay Hungry, Folks! People like Steve J. or Nash B. don’t come your way too often in anyone’s lifetime.