1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Autoblog Script Help

Discussion in 'PHP' started by zealot777, Nov 3, 2009.

  1. #1
    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!
     
    zealot777, Nov 3, 2009 IP
  2. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #2
    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.
     
    AsHinE, Nov 3, 2009 IP
  3. crossman

    crossman Peon

    Messages:
    129
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    crossman, Nov 3, 2009 IP
  4. zealot777

    zealot777 Peon

    Messages:
    448
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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.
     
    zealot777, Nov 3, 2009 IP
  5. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #5
    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.
     
    AsHinE, Nov 3, 2009 IP
  6. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #6
    Are they looking to attempt to distribute the autoblogging script, or do they want this for personal use?
     
    adbox, Nov 3, 2009 IP
  7. ilook

    ilook Well-Known Member

    Messages:
    1,602
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    165
    #7
    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.
     
    ilook, Nov 10, 2009 IP
  8. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #8
    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 ;)
     
    AsHinE, Nov 10, 2009 IP