[PHP] FTP Site

2010-02-16 Thread Ben Miller
Hi,

 

I'm building a site for a client that has a need to allow their users to
upload large files (up to 100mb or more) and store them on the server.  I've
never had a need to work with PHP's FTP functions until now and, before I go
reading the manual to learn how, I wanted to see if this something that I
can handle with just PHP, or if I'm going to need to adopt a third party
Ajax app or something like that?  Any thoughts or even a point in the right
direction would be greatly appreciated.  Thanks,

 

Ben



Re: [PHP] FTP Site

2010-02-16 Thread Robert Cummings

Ben Miller wrote:

Hi,

I'm building a site for a client that has a need to allow their users to
upload large files (up to 100mb or more) and store them on the server.  I've
never had a need to work with PHP's FTP functions until now and, before I go
reading the manual to learn how, I wanted to see if this something that I
can handle with just PHP, or if I'm going to need to adopt a third party
Ajax app or something like that?  Any thoughts or even a point in the right
direction would be greatly appreciated.  Thanks,


The PHP FTP functions are for client access to a remote server, not so 
that PHP can act as an FTP server. To resolve the issue you'll have to 
either give them FTP access, SSH access, or allow huge uploads. If you 
insist on doing it via PHP, you can use a .htaccess configuration in the 
 directory containing the upload script to override the upload/post 
maximum sizes for PHP. Similarly, you'll need to increase max execution 
time. Since these are clients, I presume they have been authenticated 
first (otherwise you're opening yourself up to DoS). Alternatively you 
could use a Flash plugin or Java applet to facilitate the upload.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] FTP Site

2010-02-16 Thread Ryan Sun
I think you will need the help from a client side app, like java
applet or flash, php can transfer file from your web server to your
ftp server but people will have difficulty uploading file via bare
browser

On Tue, Feb 16, 2010 at 3:12 PM, Ben Miller biprel...@gmail.com wrote:
 Hi,



 I'm building a site for a client that has a need to allow their users to
 upload large files (up to 100mb or more) and store them on the server.  I've
 never had a need to work with PHP's FTP functions until now and, before I go
 reading the manual to learn how, I wanted to see if this something that I
 can handle with just PHP, or if I'm going to need to adopt a third party
 Ajax app or something like that?  Any thoughts or even a point in the right
 direction would be greatly appreciated.  Thanks,



 Ben



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] FTP Site

2010-02-16 Thread Ashley Sheridan
On Tue, 2010-02-16 at 15:21 -0500, Robert Cummings wrote:

 Ben Miller wrote:
  Hi,
  
  I'm building a site for a client that has a need to allow their users to
  upload large files (up to 100mb or more) and store them on the server.  I've
  never had a need to work with PHP's FTP functions until now and, before I go
  reading the manual to learn how, I wanted to see if this something that I
  can handle with just PHP, or if I'm going to need to adopt a third party
  Ajax app or something like that?  Any thoughts or even a point in the right
  direction would be greatly appreciated.  Thanks,
 
 The PHP FTP functions are for client access to a remote server, not so 
 that PHP can act as an FTP server. To resolve the issue you'll have to 
 either give them FTP access, SSH access, or allow huge uploads. If you 
 insist on doing it via PHP, you can use a .htaccess configuration in the 
   directory containing the upload script to override the upload/post 
 maximum sizes for PHP. Similarly, you'll need to increase max execution 
 time. Since these are clients, I presume they have been authenticated 
 first (otherwise you're opening yourself up to DoS). Alternatively you 
 could use a Flash plugin or Java applet to facilitate the upload.
 
 Cheers,
 Rob.
 -- 
 http://www.interjinn.com
 Application and Templating Framework for PHP
 


Flash or Java are the best way to go for this. The browser isn't good
for large file uploads, I've had too many fail when the files got too
large, even when the server was set up to allow them.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] FTP Site

2010-02-16 Thread Rene Veerman
The only 1 i ever got to work properly for files   100 mb is
http://jumploader.com/
It's java, and free.

On Tue, Feb 16, 2010 at 9:12 PM, Ben Miller biprel...@gmail.com wrote:
 Hi,



 I'm building a site for a client that has a need to allow their users to
 upload large files (up to 100mb or more) and store them on the server.  I've
 never had a need to work with PHP's FTP functions until now and, before I go
 reading the manual to learn how, I wanted to see if this something that I
 can handle with just PHP, or if I'm going to need to adopt a third party
 Ajax app or something like that?  Any thoughts or even a point in the right
 direction would be greatly appreciated.  Thanks,



 Ben



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] FTP Site

2010-02-16 Thread Michael A. Peters

Ben Miller wrote:

Hi,

 


I'm building a site for a client that has a need to allow their users to
upload large files (up to 100mb or more) and store them on the server.  I've
never had a need to work with PHP's FTP functions until now and, before I go
reading the manual to learn how, I wanted to see if this something that I
can handle with just PHP, or if I'm going to need to adopt a third party
Ajax app or something like that?  Any thoughts or even a point in the right
direction would be greatly appreciated.  Thanks,

 


You might want to look at how the mozilla add-on firefogg does it.
They have server code example for php.

Basically it splits the file up into chunks (as it encodes it but 
encoding isn't your concern) and when a chunk is received, message is 
sent back to the client telling the client it is OK to send the next chunk.


It may be dependent upon browser functionality though, since it is the 
browser that splits the large upload into smaller manageable chunks.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php