Forums

Your php.ini upload_max_filesize is 16M.???? (9 posts)

  1. ref1mind
    Member
    Posted 3 years ago #

    Can I change the upload size of the video or no? I have a shooto lesson for schooling broke down in 80 meg clips and was wondering if i could change the limit? If so where can I find that php.ini file? Thanks.

  2. Shane G
    Member
    Posted 3 years ago #

    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.

  3. Mark
    Member
    Posted 3 years ago #

    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');
    ?>
  4. ref1mind
    Member
    Posted 3 years ago #

    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?

  5. Mark
    Member
    Posted 3 years ago #

    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.

  6. ref1mind
    Member
    Posted 3 years ago #

    ok will do thank you

  7. ref1mind
    Member
    Posted 3 years ago #

    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

  8. Mark
    Member
    Posted 3 years ago #

    Sorry, there's a typo. This line:

    ini_set('post_max_size',105M');

    Should be this:

    ini_set('post_max_size','105M');

  9. ref1mind
    Member
    Posted 3 years ago #

    WELL IT ACTIVATED BUT IM STILL GETTING THE ERROR SAYING FILE SIZE IS TOO BIG...sorry bout caps

    thanks for your help though

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.