Hello, I'm currently making a stand-alone autoblog script for wordpress blogs and I'm finished with the rss add to post part. I'm having problem with how to do that a script will be executed like twice everyday? Do I really need to use Cron Job? Or you have other ideas to recommend? Please help! Thanks!
Other solution is to run script manually twice a day by visiting url of this script. If you have cron I suggest you use it.
Do not waste your time doing what has already been done. Though i really need some autoblogging scripts as autoblogging is my primary work. if you have time, by chance. add me on skype: imdeathrequest there might be a few things i may require.
It's the company that i'm working asking to make one like this. It's an all-in-one where you can get from youtube, amazon, etc and also rewrite articles and he wants it cronless. Any other options that i can make it work? The part that i'm missing is how to make it work cronless. This is stand-alone so I don't think many has done this.
There is one more way to make a cronless site. But it requires traffic to work. Idea: When user visits the site he loads some image that triggers php script. Script checks if there are some tasks to be executed and execution time has passed. Then script executes these tasks. Example. You need go grab some content at 2:00 am. One user visits your page at 1:57 am and triggers that script. Script sees its too early to grab and does nothing. Other user visits your page at 2:02 am and triggers that script. Script sees time has passed and grabbing was not executed. Script grabs the page and marks the task for 2:00 am has been executed. Third user visits your page at 2:07 and triggers that script. Script sees time has passed and task was executed and does nothing.
Are they looking to attempt to distribute the autoblogging script, or do they want this for personal use?
There will be problems the way you describe it. For the user at 2.02 AM that has an extremely long loadtime. I don't see what's the issue with a cronjob.
You see, when I said "triggers the script" it doesn't mean that that script is executed with main site script. I saw a solution like this: <img src="/cronless.php" width="0" height="0"> HTML: in page body. So visitor gets full page with invisible image that triggers our script. Issue with cronjob can be there is no cronjob. Or like my hoster - if you want to run script every hour you need to set up 24 cron jobs in control panel