specific PHP hosting question
- Started
- Last post
- 13 Responses
- dc_again
can anyone recommend a hosting company who allows a big upload_max_filesize? from what i know about (mt), they only allow 2MB. i'm building a CMS for a client who wants to upload PDFs using HTTP, through my CMSs web interface (wouldn't know an FTP client if it bit them on the arse) and these PDFs may be 5 or 6MB.
thanks
- UndoUndo0
2MB is the default not just MT. you might find that all shared hosting plans have this level to stop undue strain on the server.
?
- ********0
Using PHP's ftp functions might overcome this.
- UndoUndo0
was that script useful moth?
- ********0
Ahh. Yes! Been meaning to find you.... Undo
Yup - Once I saw it I knew where I was going wrong and got it fixed. Works a charm now and my boss loves me.
- dc_again0
UndoUndo - yeah, i can't imagine that there are many out there who are willing to up the variable, but some do. the client currently uses a hosting company that has a 60MB limit (yes, 60MB!) but i belive it's coz they don't know what they're doing, as they're rubbish at everything else.
moth - does that bypass the php.ini vars that look after uploading files? i have always used the whole is_uploaded_file, move_uploaded_file thang. are the ftp functions better?
- dc_again0
it's an extension as well isn't it? so i guess then i'd be after only those hosting companies that have php compiled with the ftp extension! does it never end!
- UndoUndo0
doesn't look like it. about halfway down it says you can't fool the upload limit
- dc_again0
UndoUndo - yeah, but that's the file handing method that i've been using. moth is talking about the ftp functions.
- UndoUndo0
no thats ftp as well. read it :)
- ********0
no thats ftp as well. read it :)
UndoUndo
(Jul 28 05, 03:37)I dont think thats the case Undo.
- ********0
You're only calling FTP, which is a seperate protocal. The limit is then the FTP limit - if there is one. Surely?
- dc_again0
yeah moth, that's what i was thinking. guess i'll have to learn my ftp functions then. thanks for that.
- UndoUndo0
sorry guys. you are probably right moth, thought i read that on the php.net ftp page but it was in a forum!
from php.net
'Need to get around your PHP.ini file upload limit?
Use a bit of clever JavaScript to get the value of your (the location of the file on the client's machine), copy it to a hidden text box then try and upload traditionally, if you get a PHP error UPLOAD_ERR_INI_SIZE, then use the value of your hidden text box to initiate a PHP-FTP connection and upload to your heart's content.
No more limits :) '