PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I need to create a tool for a client where users can upload their graphic images and pay for them.
Then we do something with it and send it back to them. My problem is that these files are big (200MB) so I can't really use the php upload file method.
I thought to use ftp applet but this is not a good solution because I can't track which files they will upload - and this is very important to me to link between the file and the payment - something like:
$order_id = 100;
$file = "test.jpg";
Have you tried the standard upload solution? You'll probably want to use one of the progress indicator solutions along with it. I would imagine that it would be nearly impossible to guess how long to allow the server to wait for the upload to finish.. so you may need to write (or get) an easily configurable ftp applet or maybe even a private torrent server system.
The problem with ftp applet is that I can't control what the users uploading. So I can't link the file that they uploading to a payment.
Traditional uploading using http for big file is not recommended as far as I know. But can I track the progress?
Perl can fairly easily track the progress. Each way that I'm aware of is basically hacking around things because nothing really supports it natively in a straight forward fashion.