Thread: Auction Site

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    51
    Rep Power
    15
    im making an auction site, and im almost done.. Only one thing. I need the script to send the user who has won and listed the auction email, right when it ends... I dont know how to do this within php. Unless i embed it inside the each auction's page, but this will make it so it only sends if someone visits the page. How can i make it so it does it automatically when the auction ends?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    1
    Rep Power
    0
    Are we to assume that your entire auction is conducted in PHP? Does that mean that no auction data is stored outside of the webpage? This doesn't quite seem logical. However, if this is not the case, then the e-mail should be handled by the back-end servers.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    23
    Rep Power
    0
    I would suggest writing a script in C or Visual Basic that looks at your database every 5 minutes or so for complete auctions. From there you can do whatver you want..

    ------------------
    Aristotle concluded that those who admit their stupidity are truly wise.
    -
    Gil Hildebrand Jr
    4atcost.com Senior Web Developer
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    51
    Rep Power
    15
    no i do not use just php obviously... mySQL is used quite a bit . As for your VB program or C program, i know both of these languages fairly well, but have never used them in this type of situation. Mainly graphics programming and gaming. Care to insight me into how i might do what you have described?
  8. #5
  9. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    is there an event that triggers the end of an auction? how do you know when an auction is over? it should be easy to include() a conditional script at this point - assuming that the end of an aution is triggered by a user action.

    Can you tell us any more?

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    51
    Rep Power
    15
    The auction ends 1/3/5/7 days after it is posted. So, once the time of the auction has expired, i need the email to be sent. There is no user triggering involved to end the auction. If there was, this would be easy. Duh. What i need is a server side script to send out emails to the top bidder/seller of each auction which has already completed. Quickly after it has completed.
  12. #7
  13. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    You need to set up a cron job (assuming your server runs *nix).

    You can write a script in PHP that is called every so often by cron which will check for closed auctions and send your email.

    Do a search for cron for more info.
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    51
    Rep Power
    15
    thanks man. i found a good thread on it, and i intend to give it a try.

Similar Threads

  1. testing before moving web site
    By csross in forum Apache Development
    Replies: 1
    Last Post: February 4th, 2004, 03:17 PM
  2. Problem with old site showing?
    By fireatwill in forum DNS
    Replies: 2
    Last Post: January 31st, 2004, 05:50 PM
  3. Replies: 1
    Last Post: January 30th, 2004, 03:10 AM
  4. site navigation
    By bramsey in forum .Net Development
    Replies: 1
    Last Post: December 9th, 2003, 01:07 PM
  5. setup a site mirror
    By ovisopa in forum DNS
    Replies: 4
    Last Post: December 8th, 2003, 10:59 PM

IMN logo majestic logo threadwatch logo seochat tools logo