|
|
|
|
![]() ![]() |
Nov 28 2005, 12:44 PM
Post
#1
|
|
|
Wheeeeeeee! Group: Members Posts: 245 Joined: 19-October 05 From: DG, Belgium Member No.: 9,200 |
Hej!
As you all probably know, there is a file upload size limit, when uploading with PHP. It is the default preference in the php.ini (file that configures PHP) and cannot be changed by users. Currently it is set to the very low value of 2M. I think this is pretty low in an internet where quality gets better everyday and file size under 10MB are considered really small (yes, not occuring to web pages, but to a lot of other things). I am trying to make a small upload script for myself and my school newspaper, so that I can quickly load up changes from a computer, when I don't have FTP access or not the time to configure everything. I think this does not interfere with the hosting rules. I know this is not a file shack, but since we all have dedicated space and bandwidth, it won't disturb anyone, if we use it to its extents. I work for example with a school newspaper and we want to exchange PDF-files when they are finish, to criticise them and publish them later for those, who didn't have the opportunity to buy them. But I don't want to give the PDF-guy a password for FTP, so I would like to give him a web uploader. Sadly a layout PDF is normally about 30-100MB big, so I can't make a use of a PHP script. I think 2M is not a really fair limit. I thought the 5GB bandwidth we get per month was dedicated anyway. So if we use it, because we have some spare, then it won't harm the service or did I misunderstand something there? You have your reasons for that limit, but then I demand an explanation because my reasoning seems right to me (of course, hehe). regards, ruben |
|
|
|
Nov 28 2005, 02:27 PM
Post
#2
|
|
|
the Q Group: [HOSTED] Posts: 1,013 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 |
well, 2MB is the default, if the limit won't be made bigger you can use an cgi/perl script which does not have such a small limit through forms, but also if written bad there might be connection problems and not all the file will be uploaded and stuff, keep alive and stuff, you can find one of those on google/hotscripts, i didn't use them for two years though, web forms weren't designed to upload big binary files
|
|
|
|
Nov 28 2005, 02:56 PM
Post
#3
|
|
|
Wheeeeeeee! Group: Members Posts: 245 Joined: 19-October 05 From: DG, Belgium Member No.: 9,200 |
So there is no limit for Perl? I have no idea how to write perl though and I don't want to use a much-too-complicated hotscript.
I know it is not the best way, but sometimes I just need a fast & easy way to do stuff like this. |
|
|
|
Nov 28 2005, 04:18 PM
Post
#4
|
|
|
Hedonist at large Group: Members Posts: 610 Joined: 30-July 05 From: another realm Member No.: 7,524 |
I had a problem of the same kind once. I can't ftp to my site as I'm behind my campus firewall. I can only use net2ftp or some other php utility to upload. I mean, 2mb is just ridiculous .... can't this be increased to atleast 10mb? Nowadays, almost all email providers provide atleast 10mb attachment size. Can't the php.ini file be edited to take care of this?
|
|
|
|
Nov 29 2005, 11:52 AM
Post
#5
|
|
|
Premium Member Group: Members Posts: 209 Joined: 7-October 05 From: Đà Nẵng City - Việt Nam Member No.: 8,966 |
But guys, why do you need to upload so much with PHP. I think there're few things to do with PHP script. We can use ftp to upload file, there's no limitation on that. If you need to upload really big files. You may host them elsewhere, like filefront.com . I think those free file hosting services is good enough for you. The space at astahost should be used wisely for your website only.
|
|
|
|
Nov 29 2005, 02:04 PM
Post
#6
|
|
|
Hedonist at large Group: Members Posts: 610 Joined: 30-July 05 From: another realm Member No.: 7,524 |
QUOTE But guys, why do you need to upload so much with PHP. I think there're few things to do with PHP script. We can use ftp to upload file, there's no limitation on that. If you need to upload really big files. You may host them elsewhere, like filefront.com . I think those free file hosting services is good enough for you. The space at astahost should be used wisely for your website only. I can't use ftp from behind my campus firewall. Actually, I was trying to upload net2ftp which is an ftp manager using php, and I had to upload it bit by bit. Also, what if I need to restore a backup of my entire website. The size of the backup is around 25 mb. About hosting files, these are files related to our website ... we are not uploading mp3s and videos. I have some images for my gallery which are bigger than 2mb and can't upload them as they are. |
|
|
|
Nov 29 2005, 02:53 PM
Post
#7
|
|
|
Wheeeeeeee! Group: Members Posts: 245 Joined: 19-October 05 From: DG, Belgium Member No.: 9,200 |
and mp3s and or videos don't have to be illegal necessarily. i had big pdf-files, that I needed uploaded, but I didn't want to give the guy FTP-access.
A web upload is a very convenient thing, you can't deny that. You don't have FTP access all the time from every place. Services like filefront or rapidshare are clustered with ads, difficult to use and way too slow.. |
|
|
|
Nov 29 2005, 05:07 PM
Post
#8
|
|
|
Binary Geek Group: Members Posts: 444 Joined: 4-November 05 From: The Digital Arena Member No.: 9,440 |
FINALLY .. lol , my recent problem with the CMS i was using was exactly the same, only 2MB upload by default. I guess my question was answered then to change the PHP files, but the main settings lie in php.ini .. If the mods could consider requests of some users, then i would be really glad.
2MB is kinda less for a webupload now, atleast max 10 or 15 MB would be helpful if it doesnt harm the rest of the users. Regards Dhanesh. |
|
|
|
Nov 29 2005, 07:59 PM
Post
#9
|
|
|
the Q Group: [HOSTED] Posts: 1,013 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 |
to add what i said above you can use cgi/perl+php at one page, if you know php, perl is very easy to understand and include in your page the thing you want and there are many file uploaders written in this language.
I don't know if there is no limit in perl, but it is much more than 2mb, unless the configuration here is different, as i said, i haven't done this for 2 years now.. the bigger the limit is the more apache needs to work when uploading, but of course if only couple of users will be uploading, noone will notice it, so i think that is why the limit is only 2mb. |
|
|
|
Dec 5 2005, 12:37 PM
Post
#10
|
|
|
Wheeeeeeee! Group: Members Posts: 245 Joined: 19-October 05 From: DG, Belgium Member No.: 9,200 |
Yo,
I have tried to implement a simple script from hotscripts now (Perl/CGI) but it didn't work, I got an internal server error when just trying to call the script. What do I have to think of when using cgi on astahost? All the scripts have to go in cgi-bin/ right? Then I can just link to them from my forms in the action-attribute and hope that it works.? Well it doesn't. Do I have to enable perl-support in the Cpanel or something (searched, but didnt find it)? Or is there a special way of implementing the modules? I can post my source codes if it helps, I'm still trying to understand it :-) I don't have it here right, now but I can come up with it later. Thanks a lot for help, Ruben |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd August 2008 - 03:49 AM |