ftp verus http upload

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!

Moderator: General Moderators

Post Reply
bhm8hwcm
Forum Newbie
Posts: 9
Joined: Mon May 05, 2003 10:53 am

ftp verus http upload

Post by bhm8hwcm »

I am looking to write a script to allow large file uploads - up to 100mb.

I am presently using a cgi script but would like to implement something using php ftp functions. My problem is I want the user to be able to browse their hard drive to select the file (basic form). My understanding is that if use "post" then the file will be uploaded via http and ftp transfer will only happen in the final stages on transferring from a temp directory to the final destination. Is this correct?

How do I pass the file selected through the form to the ftp script so the transfer from the client to my server is by FTP.

Any suggestions or bits of sample code would help.

Thanks
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

take a look at ftp_connect(), and ftp_put()
Post Reply