Hi,
To modify the limit of php.ini you have to contact your hosting service provider to change the max_upload limit to the desired limit. If it is not possible to modify from the server end then ask for the xustom php.ini for your domain. And set it for your domain.
Thanks,
Shane G.
Or try this code as a plugin. Copy it to a file in your plugins directory (something like php_adjustments.php) and the activate it in the Plugins section of the WordPress admin panel. Then try to upload a large file – who knows – it might work if your hosting company allows PHP settings to be overridden:
<?php
/*
Plugin Name: PHP Settings
Plugin URI: http://wpsecurity.net
Description: Attempts to set the max upload size and script timeout settings in the server's PHP config
Author: Mark - WPSecurity.net
Version: 1.0
Author URI: http://mpsecurity.net
*/
ini_set('upload_max_size','100M');
ini_set('post_max_size',105M');
ini_set('max_execution_time,'300');
?>
wow…thanks! Ill give it a try but what do you mean copy it to a file? do i make a .php page and copy the code in it?
Open up a text editor – if you use Windows then open Notepad (Start->Run then enter Notepad and press enter). Copy that code into Notepad, save it as some file name that ends in .php
Then upload it to your wp-content/plugins directory using a FTP client – then go activate it in WordPress and try to upload a file big file – something larger than 16MB.
I GOT THIS ERROR WHEN TRYING TO ACTIVATE IT
Parse error: syntax error, unexpected T_STRING in /home/mmaarena/public_html/wp-content/plugins/php_adjustments.php on line 11
Sorry, there’s a typo. This line:
ini_set(‘post_max_size’,105M’);
Should be this:
ini_set(‘post_max_size’,’105M’);
WELL IT ACTIVATED BUT IM STILL GETTING THE ERROR SAYING FILE SIZE IS TOO BIG…sorry bout caps
thanks for your help though