![]() |
PHP.ini change upload limit
Hey guys,
I do appoligies if this is already here somewhere but i did take a look and found nothing. I want to change the upload limit in my PHP.ini on my server so i can upload bigger files on my forum. Could someone please tell me how to go about doing this. I can display the info for my php.ini but when it comes to PHP thats about it so everything will have to be explained. Thanks in advance. |
There is no set size limit PHP sets, you can set the timeout limit so larger files dont time out.
PHP: set_time_limit - Manual However, browsers have their own (extremely long) timeout limit. The only way to upload super large files is to use ajax. |
So when i try to upload a file and it returns the error
"The attachment’s file size is too large, the maximum upload size is 2 MB. Please note this is set in php.ini and cannot be overridden." This is because of a timeout limit? |
|
|
Quote:
|
Ok well i set it out like this in a page and loaded it:
Code:
<?Is this correct?? |
in your php.ini on line 552.
approx. halfway through the doc. you will see Quote:
|
I dont have access to the php.ini on the server.
|
then you either have to contact the system admin, and have them do it... or.. i don't know They probably have the ability to change ini settings disabled, hense why the ini code wildhoney gave didn't work...
|
Depending on your server configuration, it might be possible to do one of the following:
|
Ok could you please guide me on how to do the first one (creating the custom php.ini in a sub folder) and attach it please. If that dont work then try the second?
|
Quote:
if you cant find it anywhere you cant do anything else you have to contact the company or the administrator of the server to grant you access. |
I have looked for the php.ini its not there and have contacted my host and they will not allow anyone to change the file.
|
Quote:
Put a file named php.ini in your web root folder (often looks like /home/username/public_html) with the content:INI Code:
Per-directory .htaccess Put a file named .htaccess in your web root folder:HTACCESS Code:
No guarantees but one or the other might work (or both, but don't use both!). |
| All times are GMT. The time now is 05:53 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0