Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,090 of 9,090 pages
About the help in other languages
All help pages

Titel: checkini.sh - Skript, das prüft, ob INI-Dateien PHP-Syntax verwenden

INI-Dateien sollten auf .php enden und PHP-Syntax haben, der Inhalt also ein Kommentar in PHP-Tags sein, etwa so:

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.8/checkini.sh.txt

This page is a translation. Read the English original

*Titel: checkini.sh - Skript, das prüft, ob INI-Dateien PHP-Syntax verwenden

*Beschreibung:

INI-Dateien sollten auf .php enden und PHP-Syntax haben, der Inhalt also ein Kommentar in
PHP-Tags sein, etwa so:

<?php  /* #?ini charset="iso-8859-1"?
[Part]
Setting=value
*/ ?>

Das Skript prüft drei grundlegende Dinge. Es ist bei weitem nicht perfekt, meldet aber die
häufigsten Fehler:
- Dateien, die nicht auf .php enden
- Dateien, deren Inhalt keine gültige PHP-Syntax hat (geprüft mit PHP -l)
- Dateien ohne <?php (das wurde dann wahrscheinlich vergessen)

Zuerst gibt es für jede Datei OK oder Bad aus, am Ende eine Zusammenfassung der Fehler.

*Dokumentation:

Das Skript beruht auf bin/shell/phpcheck.sh und hat dieselben Optionen, außer dem neuen
--skip-dir.

Hinweis: Das seltsame Trennzeichen in --skip-dir sollte verbessert werden.

bin/shell/checkini.sh -h
Usage: bin/shell/checkini.sh [options]

Options: -h
         --help            This message
         --skip-dir=DIR    Do not check this directory. This is a regexp,
                           multiple directories separated by \\\|
         --exit-on-error   Exit on the first error
         --errors-only     Will only print bad files, other texts are ommited
         -q                Quiet, do not print anything

Beispiel:
bin/shell/checkini.sh --skip-dir=share\\\|ezpaypal

*Autor:
Gunnstein Lye

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors