2009-07-21, 09:52 PM
One of the biggest problems with my Downloads Manager plugin is that PHP POST file size limit which usually defaults to 2MB, and is not enough for some people's needs (myself included). So, I've been looking in to ways to get around that, and so far one of the most promising methods is the PHP FTP upload functions.
I've read how to use them, but I'm still a bit confused on the limitations for them, and I figured that, rather than go register at yet another forum so I can make 2 or maybe 3 posts I would ask here where (hopefully) I can get the answers I need just as well.
My confusion stems from the fact that the PHP is executed on the web server, so how does it use FTP to get the file from the user's computer to the FTP server? Does it use the POST method to get the file from the client to the web server, then FTP to get it to the FTP server? Or does it bypass POST altogether and go straight from the client's computer to the FTP server?
I'm hoping that this will solve the file size limit problem, but if not I don't want to rip apart my plugin only to find out it doesn't solve anything.
I've read how to use them, but I'm still a bit confused on the limitations for them, and I figured that, rather than go register at yet another forum so I can make 2 or maybe 3 posts I would ask here where (hopefully) I can get the answers I need just as well.
My confusion stems from the fact that the PHP is executed on the web server, so how does it use FTP to get the file from the user's computer to the FTP server? Does it use the POST method to get the file from the client to the web server, then FTP to get it to the FTP server? Or does it bypass POST altogether and go straight from the client's computer to the FTP server?
I'm hoping that this will solve the file size limit problem, but if not I don't want to rip apart my plugin only to find out it doesn't solve anything.