This is a discussion on FTP with PHP And File Upload within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Probably a stupid question, but since I can't find an actual answer... Does the max_upload_size variable affect FTP if ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Probably a stupid question, but since I can't find an actual answer...
Does the max_upload_size variable affect FTP if using a PHP ftp script? I'm working on something where we need to be able to upload .mp3 files that are sometimes 11 or 12 MB, but our hosting company has max_upload_size at 2MB and won't increase it. We want to upload from the browser, not from an FTP client, and I found some PHP ftp code, but I assume that max_upload_size will still affect the upload, even if we use ftp functions. Is that correct? |
|
|||
|
Dear Tim,
the browser uploads the file to the server running your script. From there your server moves the files into the folders you specified or ftp's them to another server ... Thus, YES, max_upload_size will affect the upload. Have a look if your provider allows perl. There are quite a lot of perl scripts you can use for file upload and circumvent the php settings of your provider Have fun Martin Tim McGurk wrote: > Probably a stupid question, but since I can't find an actual answer... > > Does the max_upload_size variable affect FTP if using a PHP ftp script? > > I'm working on something where we need to be able to upload .mp3 files that > are sometimes 11 or 12 MB, but our hosting company has max_upload_size at > 2MB and won't increase it. > > We want to upload from the browser, not from an FTP client, and I found some > PHP ftp code, but I assume that max_upload_size will still affect the > upload, even if we use ftp functions. > > Is that correct? |
|
|||
|
Tim McGurk schrieb:
> Probably a stupid question, but since I can't find an actual answer... > > Does the max_upload_size variable affect FTP if using a PHP ftp script? No max_upload_size has nothing to do with ftp, but an ftp script has nothing to do with browser upload:-) > > I'm working on something where we need to be able to upload .mp3 files that > are sometimes 11 or 12 MB, but our hosting company has max_upload_size at > 2MB and won't increase it. Yeah HTTP Upload is a problem. At work I tried to set the upload to unlimited, but IE doesn't even upload files that are larger 1GB firefox has probs with files larger than 2GB, but that wouldn't be a problem to you. > > We want to upload from the browser, not from an FTP client, and I found some > PHP ftp code, but I assume that max_upload_size will still affect the > upload, even if we use ftp functions. > > Is that correct? PHP FTP code will not work the way you want, you want to do upload via post(a form with inoput field where you can select your file) and there you have the upload limit problem. FTP Code in a php script can upload or download to or from a location: php code(your server) <-> ftp server > > |