increase variable size from 200 to 2000

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Rob (SA)
    Lieutenant Colonel

    • Nov 2006
    • 586

    increase variable size from 200 to 2000

    Hi Folks,

    Is there anyone who can help me modify the variable size from 200 to say 2000.

    I am not to sure what a suitable size should be but with the amount of inputs and number crunching my site will do I would expect it to be high.

    Currently it is set as suhosin.post.max_vars=200.

    I understand that is should be done through .htaccess and it is sensitive by nature to present this in the forum.

    I look forward to any assitance

    Kind Regards
    Rob
    www.gnjgf.co.za
    www.oryan-projects.com
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    Re: increase variable size from 200 to 2000

    Create a file in Notepad with the following content:

    <!-- /* SCRIPT NAME: modify_php_ini.php */ -->
    <?php
    $parm[] = "suhosin.post.max_vars = 2000";
    $customPath = "php.ini";
    // nothing should change below this line.
    if (file_exists($defaultPath)) {
    $contents = file_get_contents($defaultPath);
    $contents .= "\n\n; MODIFIED THE FOLLOWING USER PARAMETERS:\n\n";
    foreach ($parm as $value) $contents .= $value . " \n";
    if (file_put_contents($customPath,$contents)) {
    if (chmod($customPath,0600)) $message = "<b>PHP.INI File modified and copied.</b>";
    else $message = "PROCCESS ERROR - Failed to upadate php.ini.";
    } else {
    $message = "PROCCESS ERROR - Failed to write php.ini file.";
    }
    } else {
    $message = "PROCCESS ERROR - php.ini file not found.";
    }
    echo $message;
    ?>

    Then File, Save As , select File Type: all files, save it as "modify_php_ini.php"

    Upload it on your server and run it through your browser.

    2000 seems an unbelievable number............Even 200 should ve enough for your scopes.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment

    • Rob (SA)
      Lieutenant Colonel

      • Nov 2006
      • 586

      #3
      Re: increase variable size from 200 to 2000

      Thanks George,

      I hope this will help.

      I see the max is 2048 and perhaps it would be prudent to just make the change once.

      So to confirm I copy this code to a file named below and upload it to my server - would that be the root public_html/gnjgf or just public_html?

      Not sur ehow to run it through my browser though?
      Kind Regards
      Rob
      www.gnjgf.co.za
      www.oryan-projects.com

      Comment

      • navaldesign
        General & Forum Moderator

        • Oct 2005
        • 12080

        #4
        Re: increase variable size from 200 to 2000

        You upload it to where you have your script that doesn't work.

        To run it though your browser type in your browser http://www.yourdomain.com/folder/modify_php_ini.php

        It is unbelievable that whoever made the script for you doesn't support you and you need to ask elsewhere......
        Navaldesign
        Logger Lite: Low Cost, Customizable, multifeatured Login script
        Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
        DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
        Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

        Comment

        • Rob (SA)
          Lieutenant Colonel

          • Nov 2006
          • 586

          #5
          Re: increase variable size from 200 to 2000

          Hi George,

          I do ask but he is in Malaysia - and they are sleeping now.

          Stevie is quite helpful but is also not as skilled at php as you are.

          What time is it where you are - I guess youre in Italy?

          thanks I am going to try this upload now - I have created the file and saved it under all files.
          Kind Regards
          Rob
          www.gnjgf.co.za
          www.oryan-projects.com

          Comment

          • navaldesign
            General & Forum Moderator

            • Oct 2005
            • 12080

            #6
            Re: increase variable size from 200 to 2000

            Rob, since he is your developer and gets paid for this, and he suggested this solution, he COULD as well provide you with the necessary code/script and/or do it for you in the first place....
            Navaldesign
            Logger Lite: Low Cost, Customizable, multifeatured Login script
            Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
            DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
            Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

            Comment

            • Rob (SA)
              Lieutenant Colonel

              • Nov 2006
              • 586

              #7
              Re: increase variable size from 200 to 2000

              Hi George,

              Uploaded but nil effect - as you correctly suggested so I guess it is to the .htaccess option I must go.
              Kind Regards
              Rob
              www.gnjgf.co.za
              www.oryan-projects.com

              Comment

              • Rob (SA)
                Lieutenant Colonel

                • Nov 2006
                • 586

                #8
                Re: increase variable size from 200 to 2000

                Hi George,

                I found the file in source forge - although he is the developer he does not receive remuneration from me for his inputs.

                I do not know if he does this for a living or gets income from this software.

                I agree to your last sentiment hence me making the suggestion to bring you on board and pay you for services.
                Kind Regards
                Rob
                www.gnjgf.co.za
                www.oryan-projects.com

                Comment

                • navaldesign
                  General & Forum Moderator

                  • Oct 2005
                  • 12080

                  #9
                  Re: increase variable size from 200 to 2000

                  How can you state that it didn't work ? Did you run phpinfo() to see if it made effect or not ?
                  Did it give you some message after you run it ?
                  Navaldesign
                  Logger Lite: Low Cost, Customizable, multifeatured Login script
                  Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                  DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                  Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                  Comment

                  • Rob (SA)
                    Lieutenant Colonel

                    • Nov 2006
                    • 586

                    #10
                    Re: increase variable size from 200 to 2000

                    Hi George,

                    Tried running it in the browser as suggested.

                    PROCESS ERROR php.ini file not found is the text that apprears on the screen
                    Kind Regards
                    Rob
                    www.gnjgf.co.za
                    www.oryan-projects.com

                    Comment

                    • navaldesign
                      General & Forum Moderator

                      • Oct 2005
                      • 12080

                      #11
                      Re: increase variable size from 200 to 2000

                      That's a different issue.

                      Replace the code with this one:

                      <!-- /* SCRIPT NAME: modify_php_ini.php */ -->
                      <?php
                      $defaultPath = php_ini_loaded_file();
                      $parm[] = "suhosin.post.max_vars = 2000";
                      $customPath = "php.ini";
                      // nothing should change below this line.
                      if (file_exists($defaultPath)) {
                      $contents = file_get_contents($defaultPath);
                      $contents .= "\n\n; MODIFIED THE FOLLOWING USER PARAMETERS:\n\n";
                      foreach ($parm as $value) $contents .= $value . " \n";
                      if (file_put_contents($customPath,$contents)) {
                      if (chmod($customPath,0600)) $message = "<b>PHP.INI File modified and copied.</b>";
                      else $message = "PROCCESS ERROR - Failed to update php.ini.";
                      } else {
                      $message = "PROCCESS ERROR - Failed to write php.ini file.";
                      }
                      } else {
                      $message = "PROCCESS ERROR - php.ini file not found.";
                      }
                      echo $message;
                      ?>
                      Navaldesign
                      Logger Lite: Low Cost, Customizable, multifeatured Login script
                      Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                      DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                      Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                      Comment

                      • Rob (SA)
                        Lieutenant Colonel

                        • Nov 2006
                        • 586

                        #12
                        Re: increase variable size from 200 to 2000

                        Hi George,

                        www.gnjgf.co.za/****/phpinfo.php is where I view it but no change under suhosin.max.post_var=200
                        Kind Regards
                        Rob
                        www.gnjgf.co.za
                        www.oryan-projects.com

                        Comment

                        • Rob (SA)
                          Lieutenant Colonel

                          • Nov 2006
                          • 586

                          #13
                          Re: increase variable size from 200 to 2000

                          Hi George,

                          Result positive PHP.INI File modified and copied.

                          However no effect on the program.

                          Thanks for this help
                          Kind Regards
                          Rob
                          www.gnjgf.co.za
                          www.oryan-projects.com

                          Comment

                          • navaldesign
                            General & Forum Moderator

                            • Oct 2005
                            • 12080

                            #14
                            Re: increase variable size from 200 to 2000

                            So it wasn't the hardener after all....
                            Navaldesign
                            Logger Lite: Low Cost, Customizable, multifeatured Login script
                            Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                            DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                            Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                            Comment

                            • Rob (SA)
                              Lieutenant Colonel

                              • Nov 2006
                              • 586

                              #15
                              Re: increase variable size from 200 to 2000

                              Yep.

                              That why I agreed with you earlier - Will the .htaccess be the place I need to alter then?
                              Kind Regards
                              Rob
                              www.gnjgf.co.za
                              www.oryan-projects.com

                              Comment

                              Working...
                              X