Auto run php

Discussion in 'PHP' started by ropo, Jul 12, 2010.

  1. #1
    i want to send an email every day using php. But how to do it automatically. for example every 12 midnight it will automatically send email without manually load that page. Thank you for any help
     
    ropo, Jul 12, 2010 IP
  2. KnuTz

    KnuTz Well-Known Member

    Messages:
    169
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    1
    #2
    cron jobs is your friend ... if you have cpanel you can set a cron job to run a script in x amount of time...
     
    KnuTz, Jul 12, 2010 IP
  3. ropo

    ropo Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks a lot.. you save my day...
     
    ropo, Jul 13, 2010 IP
  4. Doxeay

    Doxeay Greenhorn

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    Or if you aren't using linux, you could use CronForWindows (if you are using windows)
     
    Doxeay, Jul 13, 2010 IP
  5. ropo

    ropo Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    me using linux.. but, thanks for that additional info.. help others who read this thread..
     
    ropo, Jul 13, 2010 IP
  6. Doxeay

    Doxeay Greenhorn

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    Sure, no problem.
     
    Doxeay, Jul 14, 2010 IP