|
-
Mar 6th, 2006, 03:50 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Large file upload
Hello everybody,
My client wants the option of large file uploads in his website. I changed the constant upload_max_filesize to 5M on my system and it works, but how can I do this change on the hosting server using my control panel or any other option.
Thanks.
-
Mar 7th, 2006, 12:05 PM
#2
<?="Moderator"?>
Re: Large file upload
ini_set() should allow you to change the upload_max_filesize to 5M, but this needs to be added to your code.
-
Mar 8th, 2006, 02:54 AM
#3
Thread Starter
Frenzied Member
Re: Large file upload
I tried this but it doesn't work for me.
Code:
ini_set('post_max_size','5M');
ini_set('upload_max_filesize','5M');
Thanks.
-
Mar 10th, 2006, 03:10 AM
#4
Member
Re: Large file upload
Some hosts will let you place a php.ini file (which are limited) in dirs.
Maybe check your hosts forum or place a php.ini file (with the code below in it) in the same dir which the script will be running in:
Example:
upload_max_filesize = 7M
post_max_size = 50M
_
-
Mar 10th, 2006, 05:44 AM
#5
Thread Starter
Frenzied Member
Re: Large file upload
Thanks. That worked for me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|