superkingkong Posted November 24, 2008 Share Posted November 24, 2008 hi guys, i'm trying to look for a php ftp script that can upload multiple files to my site. currently, i'm using the php / perl to upload, but when trying to upload large files, i get http error page that most ppl are having... it's something to do with the httpd.conf timeout error, which i can't change, because my site is hosted on a shared server. i'm trying to upload multiple image files, eg, 5mb each file...about 10of them each time.. so, it should be 50mb total each time. sometimes it's successful, probably the connection is fast, but most of the time, i get an http error page, due to connection slow. would appreciate if someone could give me some pointer on this php ftp upload. btw, i'm new to php thank you very much Quote Link to comment https://forums.phpfreaks.com/topic/134053-php-ftp-multiple-files-upload-help/ Share on other sites More sharing options...
JonnoTheDev Posted November 24, 2008 Share Posted November 24, 2008 Im not sure about FTP, how would you select a file from the local computer for PHP FTP to your webserver? Ive used FTP functions before but for sending files to a second webserver directly from the host webserver. Can you not override the timeout directive in a .htaccess file. Shared hosting is pants! Quote Link to comment https://forums.phpfreaks.com/topic/134053-php-ftp-multiple-files-upload-help/#findComment-697832 Share on other sites More sharing options...
rhodesa Posted November 24, 2008 Share Posted November 24, 2008 another option, is to allow ZIP files. so the user can create a ZIP with all 10 files in it (hopefully compressed to under 50MB), then PHP can unzip it when it receives the file. Quote Link to comment https://forums.phpfreaks.com/topic/134053-php-ftp-multiple-files-upload-help/#findComment-697835 Share on other sites More sharing options...
superkingkong Posted November 24, 2008 Author Share Posted November 24, 2008 yes, i've seen quite a few of them, but they can only upload 1 file at a time. if my user needs to upload 100 files, they will have to click and wait for 100 times... i've read somewhere, the timeout directive can't be changed in .htaccess... well, maybe someone here might have a more accurate information. as for zipping up... it's also an options, but to zip 100 files is a pita Quote Link to comment https://forums.phpfreaks.com/topic/134053-php-ftp-multiple-files-upload-help/#findComment-698220 Share on other sites More sharing options...
rhodesa Posted November 25, 2008 Share Posted November 25, 2008 as for zipping up... it's also an options, but to zip 100 files is a pita Select All -> Right Click -> Add to ZIP Quote Link to comment https://forums.phpfreaks.com/topic/134053-php-ftp-multiple-files-upload-help/#findComment-698379 Share on other sites More sharing options...
.josh Posted November 25, 2008 Share Posted November 25, 2008 You could use some js/ajax to allow the users to select multiple files, but upload them one at a time. Quote Link to comment https://forums.phpfreaks.com/topic/134053-php-ftp-multiple-files-upload-help/#findComment-698382 Share on other sites More sharing options...
JonnoTheDev Posted November 25, 2008 Share Posted November 25, 2008 You could try SWF upload. I have implemented this before. Allows multiple uploads and displays progress bar: http://swfupload.org/ Quote Link to comment https://forums.phpfreaks.com/topic/134053-php-ftp-multiple-files-upload-help/#findComment-698656 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.