Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Vous pouvez inclure un fichier php.ini avec votre application App Engine. Ce fichier vous permet de personnaliser le comportement des directives de l'interpréteur PHP.
Placez le fichier php.ini dans le répertoire de base de votre application, où se trouve le fichier app.yaml. Il est chargé lors de l'initialisation de l'interpréteur PHP, avant l'exécution du code de l'application.
Le fichier suit la même syntaxe que les autres fichiers .ini.
Voici un exemple simple :
; This is a simple php.ini file on App Engine; It enables output buffering for all requests by overriding the; default setting of the PHP interpreter.output_buffering = "On"
Une liste des directives principales, avec leurs valeurs en mode variable, est publiée sur php.net.
Vous pouvez ignorer n'importe quelle directive PHP ayant l'une des valeurs en mode variable ci-dessous :
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/04/21 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/04/21 (UTC)."],[[["\u003cp\u003eYou can customize PHP interpreter behavior in your App Engine application by including a \u003ccode\u003ephp.ini\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003ePlace the \u003ccode\u003ephp.ini\u003c/code\u003e file in your application's base directory alongside the \u003ccode\u003eapp.yaml\u003c/code\u003e file for it to be loaded.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ephp.ini\u003c/code\u003e file uses the standard \u003ccode\u003e.ini\u003c/code\u003e file syntax to override PHP directives.\u003c/p\u003e\n"],["\u003cp\u003eYou can override PHP directives with changeable mode values of \u003ccode\u003ePHP_INI_SYSTEM\u003c/code\u003e, \u003ccode\u003ePHP_INI_ALL\u003c/code\u003e, or \u003ccode\u003ePHP_INI_PERDIR\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe extension directive allows for the enabling of dynamically loadable extensions.\u003c/p\u003e\n"]]],[],null,["# The php.ini File\n\nYou can include a `php.ini` file with your App Engine application. This\nfile lets you customize the behavior of the PHP interpreter directives.\n\nSee an example of the [default `php.ini` configuration](http://php72-ini.appspot.com/).\n\nUsing a custom php.ini file\n---------------------------\n\nPlace the `php.ini` file in your application's base directory where your\n`app.yaml` file is located. It is loaded when the PHP interpreter is\ninitialized, before running your application code.\n\nThe file follows the same syntax as [other `.ini` files](https://en.wikipedia.org/wiki/INI_file).\nA simple example might look like: \n\n ; This is a simple php.ini file on App Engine\n ; It enables output buffering for all requests by overriding the\n ; default setting of the PHP interpreter.\n output_buffering = \"On\"\n\nA list of the core directives, along with their changeable mode values, is\n[published on php.net](http://php.net/manual/en/ini.list.php).\n\nYou can override any PHP directive that has one of the following changeable mode\nvalues:\n\n- `PHP_INI_SYSTEM`\n- `PHP_INI_ALL`\n- `PHP_INI_PERDIR`\n\nYou can enable a set of [dynamically loadable extensions](/appengine/docs/standard/php-gen2/runtime#dynamically_loadable_extensions)\nby using the `extension` directive."]]