Long story short. I am not able to modify my php.ini

I was told that i can change the value of "upload_max_filesize" by creating an htaccess file. I am a noob. How would i go about doing this. Also does this file have to be in the same folder as the script or can i put it at the root of my site?

    Putting the following line in an .htaccess file should work -

    php_value upload_max_filesize 1024

    Note the value is in bytes. You can use shorthand (K,M,G) in PHP >= 5.1

    It should work in any folder above the script in the directory tree - so the root folder is ok.

      nnichols wrote:

      Putting the following line in an .htaccess file should work -

      php_value upload_max_filesize 1024

      Note the value is in bytes. You can use shorthand (K,M,G) in PHP >= 5.1

      It should work in any folder above the script in the directory tree - so the root folder is ok.

      So if i put

      php_value upload_max_filesize 1024000

      that will be 100MB?

        1024 bytes = 1 Kb
        1024 Kb = 1 Mb
        1024 Mb = 1 Gb

          In otherwords, 1024000 bytes = 1,000KB.

          Try 104857600 bytes for 100MB 😉

            Write a Reply...