douji9518 2011-05-07 16:39
浏览 25
已采纳

拍卖网站如何运作? [关闭]

I simply wonder how auction websites lite ebay work?

The main thing I wonder about is how the technical part of the auction works when placing bids.

For example, what happens if two people place a bid exactly at the same second?

What programming lang is used, and preferred? (I preferr PHP if it works good)

Does auction sites require server cron jobs in order to detect ending times of bids?

I would appreciate a good article on this.

Also, in terms of safety, what should one watch out for when making an auction site compared to making a regular classifieds website (which I have made already)?

Thanks

  • 写回答

1条回答 默认 最新

  • dousi6087 2011-05-07 16:54
    关注

    Not really a question for here I guess, but here's the answer.

    First come first go, the page that loads the fastest will get the bid and the other will be notified that his/her bid is too low.

    Programming language doesn't mather, ASP, PHP, everything will work if you programm it the right way. Cronjobs are not needed, if there's a datetime field in the database you are able to check the current time against the end time and thus allowing a bid or not (and for viewing all auctions this is used to display an auction or not). However, you could use a cronjob that scans your database for ended auctions and perhaps archive them in another table to keep your active auction database clean (same for all bid-logs etc)

    Im not sure what you WOULDN'T do for safety,.. if your sending peoples data across the website, you might consider an SSL certificate to secure their personal details. And ofcourse all default security like checking values, integers, escaping database values etc.

    Also, there are a lot of sites making use of jQuery/javascript right now. This way you can see the auction live. It's nothing more than having a javascript function running on an interval making a request to a PHP file which fetches the current bid/bid end and perhaps other information and displaying it every X second(s) to the screen.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Android STD快速启动
  • ¥15 如何使用simulink建立一个永磁同步直线电机模型?
  • ¥30 天体光谱图的的绘制并得到星表
  • ¥15 PointNet++的onnx模型只能使用一次
  • ¥20 西南科技大学数字信号处理
  • ¥15 有两个非常“自以为是”烦人的问题急期待大家解决!
  • ¥30 STM32 INMP441无法读取数据
  • ¥15 R语言绘制密度图,一个密度曲线内fill不同颜色如何实现
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动