how to invoke php script automatically?

Discussion in 'PHP' started by tgvrs4u, Mar 1, 2008.

  1. #1
    hi.........

    i am doing a project using php,apache and mysql on xp windows platform which involves storing of student details into table by registering and the confirmation is sent to mail which contains further link.........

    my problem is :confused::confused: i have to delete the student details in the table if he dont follow the link sent to the mail after 20 days?

    how can i do it?

    is it possible to invoke a php script at regular intervals of time that will check the above problem?
     
    tgvrs4u, Mar 1, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    nico_swd, Mar 1, 2008 IP
  3. Wuiqed

    Wuiqed Well-Known Member

    Messages:
    110
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Windows has its own version of Cron Jobs, called Scheduled Tasks. You can find it under Accessories > System Tools > Scheduled Tasks. To run a script via this you can create a .bat file, edit it and put something like the following example in it.

    cd c:\path\to\script\folder
    php -f script.php
    Code (markup):
     
    Wuiqed, Mar 1, 2008 IP