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.

Automaticly start php program

Discussion in 'PHP' started by deniso2007, Sep 7, 2007.

  1. #1
    Hello, I apologize for mistakes in writing in advance. I wrote a program in php that chechs mail, parses the mail and writes required content into database. Now I don't know how to make it work, so that the program would start every 10seconds? When I worked with .exe I knew how, but now with php I don't. I am new to php so I apologize if the question is stupid and the answer is simple, but I don't know it. Please help.
     
    deniso2007, Sep 7, 2007 IP
  2. tamilsoft

    tamilsoft Banned

    Messages:
    1,155
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can achieve this by using cron job
     
    tamilsoft, Sep 7, 2007 IP
  3. deniso2007

    deniso2007 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry but this doesn't help because I have WIN 2003 SERV not linux. I know I can use task schedule but don't know how to call php script. Even better solution would be to use MTA = Mail transfer agent and call script only when mail comes, but these are all ideas which I can't do.
     
    deniso2007, Sep 7, 2007 IP
  4. Close

    Close Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can try pseudo-cron jobs.

    Read about them here : http://www.bitfolge.de/pseudocron-en.html

    Although they aren't the most elegant solution in the world.
     
    Close, Sep 7, 2007 IP
  5. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #5
    TwistMyArm, Sep 7, 2007 IP
  6. KalvinB

    KalvinB Peon

    Messages:
    2,787
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Create a bat file that executes your PHP file then schedule the bat file to run.

    You don't need any additional software.
     
    KalvinB, Sep 7, 2007 IP