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

checkini.sh - Script for checking that ini files use PHP syntax

Ini files should end with .php, and have PHP syntax, meaning that the content should be a comment within php tags, like this:

Download as PDF

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

*Title: checkini.sh - Script for checking that ini files use PHP syntax.

*Description:

Ini files should end with .php, and have PHP syntax, meaning that the content
should be a comment within php tags, like this:

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

The script does three basic checks for this. It is far from perfect, but will
report the most common errors:
- Files not ending with .php
- Files where the content does not have valid PHP syntax (checked with PHP -l)
- Files without <?php (probably means you forgot to add it)

First, it prints OK or Bad for every file, and at the end it prints a summary
of any errors.

*Documentation:

The script is based on bin/shell/phpcheck.sh, and uses the same options, except
the new --skip-dir.

Note: The strange separator in --skip-dir. This should be improved.

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

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

*Authors:
Gunnstein Lye <[email protected]>

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