...

View Full Version : Ftp / php upload website



mint suite
06-20-2006, 10:12 PM
Could anyone give me some advise on this?

I need to build a facility for a client of mine to upload files for clients of theirs to download. Originally I was planning to do this in php (I've built a number of cms involving the uploads of files)but the size of the files may be an issue (they may be large files 10mb plus).

As well as allowing my client to upload I would also want my clients clients to upload too. I don't want to rely on everyone downloading an ftp programme.

Basically I would like uploads to be carried out via a browser.

What would be the best way for me to go about doing this? I know that I need to use ftp, but I could do with some help in where to start.

lavinpj1
06-20-2006, 10:25 PM
The only facility your web browser has for file uploading is posting. You will need to edit php.ini to upload larger files. You could also look at using java to upload the files, but I can't think of any good java clients.

~Phil~

mint suite
06-20-2006, 10:39 PM
Thanks for the help -

So.... if I alter the php.ini file I can upload large files with a php cms? Do I have to worry about the browser timing out?

cubsfan
06-20-2006, 10:43 PM
Might look at http://projects.adamsutton.co.uk/summary.php?asuk_project_id=3

I used it for a while in the past but have since stopped due to some issues with the ftp server I'm using.

Might also dig thru some of the links returned by http://www.google.com/search?hl=en&q=php+ftp+client&btnG=Google+Search

lavinpj1
06-20-2006, 10:45 PM
I don't see how you can use php as an ftp client. Maybe i'm wrong but...

PHP is a server side language, therefore the files must get to the server from your PC. The only way they can do that is by http post.

Correct me if i'm wrong

~Phil~

lavinpj1
06-20-2006, 10:47 PM
Thanks for the help -

So.... if I alter the php.ini file I can upload large files with a php cms? Do I have to worry about the browser timing out?

The browser won't time out. It is php that times out, and php only takes the file for processing after it has been uploaded.

~Phil~

cubsfan
06-20-2006, 10:49 PM
There are built in ftp functions. http://us3.php.net/manual/en/ref.ftp.php. I primarily use the ftp functions for some php scripts I run as cron jobs. Should be able socket functions as well if you are so inclined. I've done that in the past for some basic NNTP functionality.

The upload from the browser to the server is by posting, but you can then FTP the file to an ftp server within the script.

mint suite
06-20-2006, 11:34 PM
ok - I've just downloaded Adam Suttons ftp php client as a zip but I can't open the read me or FAQ files. Cubsfan - is there any chance that you could give the gist of how this works?

Do I just upload it all to my server and build a page around the php file?

Sorry for sounding like an idiot.....

mint suite
06-20-2006, 11:53 PM
forget that last post - got it working

mint suite
06-20-2006, 11:58 PM
the read me and faq files would be good if they're handy. Cheers



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum