Koumbit.org

For freedom and solidarity online

How can specific PHP parameters be modified?

It is possible de modify certain PHP parameters using directives inside an ".htaccess" file specific to your sites. To affect the whole site, lines of code can be added to a file that is named ".htaccess" (without the quotes) at the root of your website.

Therefore, if you need to change a specific parameter, such as max_input_vars, it is possible to add the following lines:

# PHP 8.1
<IfModule mod_php.c>
  php_value max_input_vars 10000
</IfModule>
# PHP 7.3
<IfModule mod_php7.c>
  php_value max_input_vars 10000
</IfModule>

To verify that the changes have taken effect, it is possible to verify on a page that outputs the PHP configuration information. You can, for example, create a page called "test.php" which contains the following lines:

<?php
  phpinfo();
?>

Certain content management systems provide such pages to ease that task. Check the documentation of your CMS to find out if such a page is available.

Call us

☏ +1 514 907 9494
Lun: 10h à 12h et 13h à 16h
Mar: 10h à 12h
Mer: 10h à 12h et 13h à 16h
Jeu: 10h à 12h
Mon: 10am to 12pm and 1pm to 4pm
Tue: 10am to 12pm
Wed: 10am to 12pm and 1pm to 4pm
Thu: 10am to 12pm

Come and See Us!

1883, rue Atateken,
Montréal (Québec) H2L 3L7, Canada
Veuillez noter que nos bureaux n'ont pas de stationnement attitré.
1883 Atateken Street,
Montreal, Quebec, H2L 3L7, Canada
Please note that you'll need to find on-street parking.

Write to Us

Informations générales

Support technique

Pour une demande de devis, voir le formulaire à la page contact.

Nos clefs PGP

Politique de confidentialité

General inquiries

Technical support

For a free estimate, see the form on our contact page.

Our PGP keys

Privacy Policy

Follow Us

ktweb_menu_social

Mouton