| Editer une configuration (Previous) | (Next) Config::Config | ||||
| |
|||||
|
|||||
Parses et enregistrer des fichiers de configuration Apache. Ce conteneur ne propose pas d'options.
Fichiers de configuration génériques. Les caractères égal (=), de début de commentaire et de nouvelle ligne dans l'analyseur peuvent être personnalisés pour correspondre votre format de configuration préféré.
Tableau 37-1. Available Options
| Option | Data Type | Default value | Description |
|---|---|---|---|
| << comment >> | chaîne de caractères | << # >> | The character that signifies the start of a comment. |
| << equals >> | chaîne de caractères | << : >> | The character that separates keys from values. |
| << newline >> | chaîne de caractères | << \ >> | The character that signifies that a value continues across multiple lines. |
Analyse les fichiers INI standards et maintient les commentaires within the file. Ce conteneur ne propose pas d'options.
Analyse les fichiers INI standards en utilisant la fonction PHP parse_ini_file(). Ne lit pas les commentaires. Ce conteneur ne propose pas d'options.
Analyse les structures de tableau PHP. Peut lire depuis un fichier source PHP ou depuis un tableau en mémoire. Due to technical limitations, this container does not parse blank lines or comments when reading from a configuration file, therefore any information contained within PHP comments will be lost.
Tableau 37-2. Available Options
| Option | Data Type | Default value | Description |
|---|---|---|---|
| << name >> | chaîne de caractères | << conf >> | The name to use for the root configuration variable, both when parsing and writing PHP source files. |
| << useAttr >> | booléen | TRUE | Controls whether attributes are parsed and saved. |
| Avertissement |
Vu que les fichiers de configuration contenant des tableaux PHP sont justes inclus en utilisant les méthodes standarts PHP, les commentaires de code et la structure seront perdus lors de la sauvegarde. |
Analyse un jeu de define() PHP depuis un fichier source PHP. Comments are maintained by this container, although blank lines will be lost. There are no options for this container.
Analyse un fichier XML avec XML_Parser.
Tableau 37-3. Available Options
| Option | Data Type | Default value | Description |
|---|---|---|---|
| << version >> | chaîne de caractères | << 1.0 >> | The XML version to use. |
| << encoding >> | chaîne de caractères | << ISO-8859-1 >> | The content encoding to use when parsing and storing data. |
| << name >> | chaîne de caractères | << conf >> | As with PHPArray, this defines the name of the global configuration root. |
| << indent >> | chaîne de caractères | << >> | The character used for indentation when writing the XML document, if any. By default, two spaces are used. |
| << linebreak >> | chaîne de caractères | << \n >> | The line-breaking character(s) to use when writing the XML document. |
| << addDecl >> | booléen | TRUE | Controls whether the XML declaration is added to the start of the XML document. |
| << useAttr >> | booléen | TRUE | Controls whether attributes are parsed and saved. |
| << isFile >> | booléen | TRUE | If TRUE, the first argument to parseConfig() will be taken as the file name for the XML file to load. If FALSE, the argument will be taken as the XML data itself and parsed accordingly. |
| << useCData >> | booléen | FALSE | Controls whether data is enclosed in CDATA blocks. |
| Editer une configuration (Previous) | (Next) Config::Config | ||||||||
| |
|||||||||
|
|||||||||