开发者

How to create a direct upload script like pipebytes.com?

Has anyone 开发者_Go百科an idea how pipebytes.com works ? I need to implement similar system in PHP and I do not know how to start. The only thing I know is that it is possible to implement it :). Please help!


Update: Pipebytes are indeed not an ordinary filesharing service because they start serving the file before it is completely uploaded. Still, the principle is the same. Their server receives the file, and serves it to the recipient. It is not p2p.

Looks pretty straightforward to me. The "file is sent to the recipient" is slightly misleading, as far as I can see there is no real peer-to-peer process involved here. The file is stored on their server, and delivered to the recipient if they manage to enter the correct code.

Steps:

  • File upload (manual here)
  • Storing the file somewhere in the filesystem
  • Storing the code specified by the user somewhere, e.g. a database
  • Sending an E-Mail to the recipient (manual here)
  • Serving the file to the recipient (related questions here and here)


OK. Pipebytes is not your normal file sharing service like Pekka describes.

What happens is that the client uploads to the server and at the same time the receiver downloads the file byte by byte.

The server is basically transmitting the uploaded file back to another user.

This is not a P2P. The server is required. You can read what the definition for P2P here: http://en.wikipedia.org/wiki/Peer-to-peer

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜