Bluehost.com Web Hosting $6.95

FTP with PHP And File Upload

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-30-2006
Tim McGurk
 
Posts: n/a
Default FTP with PHP And File Upload

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?


Reply With Quote
  #2 (permalink)  
Old 12-30-2006
Martin Mandl - m2m tech support
 
Posts: n/a
Default Re: FTP with PHP And File Upload

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?


Reply With Quote
  #3 (permalink)  
Old 12-30-2006
Ric
 
Posts: n/a
Default Re: FTP with PHP And File Upload

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



>
>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:29 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0