Results 1 to 19 of 19

Thread: increase variable size from 200 to 2000
      
   

  1. #1
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Question 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


  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  3. #3
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Thumbs up 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?

  4. #4
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  5. #5
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Thumbs up 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.

  6. #6
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  7. #7
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default 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.

  8. #8
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Thumbs up 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.

  9. #9
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  10. #10
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Question 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

  11. #11
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  12. #12
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Question 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

  13. #13
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Thumbs up 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

  14. #14
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  15. #15
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default 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?

  16. #16
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: increase variable size from 200 to 2000

    No,

    there are two ways to change the number of vars. Either with a .htaccess file OR with a local php.ini file (using the code i provided).

    The result is the same.

    Your script has a problem 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!


  17. #17
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Question Re: increase variable size from 200 to 2000

    Ok then,

    That now narrows it down to 1000 other things I guess.

    Just as a question should the .htaccess file also be present in the folder where we have posted the modify_php_ini file or is it all covered by the .htaccess in the root . . . public_html folder?

  18. #18
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: increase variable size from 200 to 2000

    Rob I don't get it:
    What do you need the .htaccess file for ????? You have already set the vars to 2000 above...
    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!


  19. #19
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Thumbs up Re: increase variable size from 200 to 2000

    Hi George,

    I just saw that it was present in most my BV folders but not in these two - so thought it might be part of the problem.

    If we have sorted it its sorted. I thought perhaps it had a differnet function to what we have been working with.

    I will move on then to trying to solve my problem

    Thanks for your help George

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49