Help with ini_set and upload_max_filesize

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    Help with ini_set and upload_max_filesize

    I am puzzled, I want to change the upload_max_file size setting, if I
    do this with

    ini_set('upload _max_filesize', 8000000);

    the upload_max_file size is not set. However, if I make the change in
    ..htaccess with "php_value upload_max_file size 8m", this works.

    Why does not the ini_set work?
  • Alvaro G. Vicario

    #2
    Re: Help with ini_set and upload_max_file size

    *** David escribió/wrote (Wed, 29 Nov 2006 16:58:01 -0600):
    ini_set('upload _max_filesize', 8000000);
    >
    the upload_max_file size is not set. However, if I make the change in
    .htaccess with "php_value upload_max_file size 8m", this works.
    >
    Why does not the ini_set work?
    From manual: "Not all the available options can be changed using ini_set().
    There is a list of all available options in the appendix."

    This is the appendix: http://www.php.net/manual/en/ini.php

    --
    -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
    ++ Mi sitio sobre programación web: http://bits.demogracia.com
    +- Mi web de humor con rayos UVA: http://www.demogracia.com
    --

    Comment

    • Jerry Stuckle

      #3
      Re: Help with ini_set and upload_max_file size

      David wrote:
      I am puzzled, I want to change the upload_max_file size setting, if I
      do this with
      >
      ini_set('upload _max_filesize', 8000000);
      >
      the upload_max_file size is not set. However, if I make the change in
      .htaccess with "php_value upload_max_file size 8m", this works.
      >
      Why does not the ini_set work?
      Maybe because the new upload_max_file size is only good for this pate?
      And the upload is actually handled by the next page?

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • Jerry Stuckle

        #4
        Re: Help with ini_set and upload_max_file size

        Jerry Stuckle wrote:
        David wrote:
        >
        >I am puzzled, I want to change the upload_max_file size setting, if I
        >do this with
        >>
        >ini_set('uploa d_max_filesize' , 8000000);
        >>
        >the upload_max_file size is not set. However, if I make the change in
        >.htaccess with "php_value upload_max_file size 8m", this works.
        >>
        >Why does not the ini_set work?
        >
        >
        Maybe because the new upload_max_file size is only good for this pate?
        And the upload is actually handled by the next page?
        >
        I mean "this page..."

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        Working...