Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente | |||
| info:myphp:php_debug [2026/03/05 09:57] – supprimée - modification externe (Date inconnue) 127.0.0.1 | info:myphp:php_debug [2026/03/05 09:57] (Version actuelle) – ↷ Page déplacée de info:php:php_debug à info:myphp:php_debug radeff | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ===== PHP Debug ===== | ||
| + | * [[https:// | ||
| + | <code php> | ||
| + | //debug begin | ||
| + | ini_set(' | ||
| + | ini_set(' | ||
| + | error_reporting(-1); | ||
| + | // Report simple running errors | ||
| + | // | ||
| + | |||
| + | // Reporting E_NOTICE can be good too (to report uninitialized | ||
| + | // variables or catch variable name misspellings ...) | ||
| + | // | ||
| + | |||
| + | // Report all errors except E_NOTICE | ||
| + | // | ||
| + | |||
| + | // Report no errors (no debug, prod) | ||
| + | // | ||
| + | |||
| + | //echo "< | ||
| + | //debug end | ||
| + | </ | ||
| + | |||
| + | ==== .htaccess ==== | ||
| + | |||
| + | |||
| + | peut aussi se mettre dans un htaccess de la façon suivante: | ||
| + | |||
| + | php_flag display_errors off | ||
| + | ==== infomaniak ==== | ||
| + | |||
| + | ou encore (config de base infomaniak) | ||
| + | <code html> | ||
| + | <?php | ||
| + | ini_set(' | ||
| + | ini_set(' | ||
| + | $site = getenv(" | ||
| + | ?> | ||
| + | < | ||
| + | <frame src=" | ||
| + | </ | ||
| + | </ | ||