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.

I want to start a php class file from server side.

Discussion in 'PHP' started by sankarsubramanian, Dec 22, 2006.

  1. #1
    I want to start a php class file from server side which should delete records from the table which are one month older.
     
    sankarsubramanian, Dec 22, 2006 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Sounds cool. :D


    And the problem is?
     
    nico_swd, Dec 23, 2006 IP
  3. weknowtheworld

    weknowtheworld Guest

    Messages:
    306
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you have to run a page for it every month..
     
    weknowtheworld, Dec 23, 2006 IP
  4. sankarsubramanian

    sankarsubramanian Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i know queries. but i dont know how to write program in php to delete records daily automatically.
     
    sankarsubramanian, Dec 23, 2006 IP
  5. sankarsubramanian

    sankarsubramanian Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    run a page??
    which page? and how??
     
    sankarsubramanian, Dec 23, 2006 IP
  6. sankarsubramanian

    sankarsubramanian Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    help me please..............
     
    sankarsubramanian, Dec 23, 2006 IP
  7. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You write a php page which connects to your database and performs your delete query, then you use cron to run it every month / day / year / whatever.
     
    matthewrobertbell, Dec 23, 2006 IP
  8. sankarsubramanian

    sankarsubramanian Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    hai! can u please tell me about cron?? am new to php. very urgent!!
     
    sankarsubramanian, Dec 25, 2006 IP