colors
db-database
db-driver
db-host
db-password
db-user
debug
help
logfiles
no-colors
no-logfiles
quiet
siteaccess
url
Use ANSI colors when generating debug output (default).
The name of the database to update. If omitted, the database name specified in the "Database" configuration directive will be used.
The type of the database, for example "ezmysql". If omitted, the type specified in the "DatabaseImplementation" configuration directive will be used.
The hostname or the IP address of the server running the database engine, for example "localhost". If omitted, the value specified in the "Server" configuration directive will be used.
The password that belongs to the database user. If omitted, the password specified in the "Password" configuration directive will be used.
The username that will be used to access the database. If omitted, the name specified in the "User" configuration directive will be used.
Output debug information. The following options can be used to control what the debug output should include: "all" (everything), "accumulator" (accumulators), "include" (included files), "timing" (timing points), "error" (errors), "warning" (warnings), "notice" (notices).
Output information about the script and supported parameters.
Generate log files. This parameter must be used together with the debug parameter ("-d" or "--debug"). The log files (for example "warning.log") will be stored in the "var/log" directory of the eZ Publish installation.
Do not use ANSI colors when generating debug output.
Do not generate log files (default).
Run the script in "quiet" mode. No output will be generated.
The siteaccess to run the script for. If omitted, the default siteaccess will be used.
The url to the range xml that contains the list of ranges. This parameter is required. One example is http://www.isbn-international.org/agency?rmxml=1 . See http://www.isbn-international.org/page/ranges for detail.
This script makes it possible to import the latest ISBN ranges to the database. Without this information, the system may not be able to handle ISBN-13 codes properly (refer to the documentation of the ISBN datatype for more information). Since the calculation rules for ISBN codes can be changed on a monthly basis, you may need to run the script regularly in order to keep the range information in the database up to date.
When running the script, use the "--url" parameter to tell the script where to look for the range file. By default, the database configuration of the default siteaccess will be used. You can use the optional "--siteaccess" parameter to make the script import ranges to the database that is used by a particular siteaccess. In addition, the optional "--db-database", "--db-driver", "--db-host", "--db-user" and "--db-password" parameters make it possible to combine custom database options with the database configuration of the specified (or default) siteaccess.
php bin/php/updateisbn13.php --url=http://www.isbn-international.org/agency?rmxml=1
Import data from isbn international to the database that is used by the default siteaccess.
php bin/php/updateisbn13.php --url=http://www.isbn-international.org/agency?rmxml=1 --siteaccess=example
Import data from isbn international to the database that is used by the "example" siteaccess.
php bin/php/updateisbn13.php --url=http://www.isbn-international.org/agency?rmxml=1 --siteaccess=example --db-database=test
Import data from isbn international. The script will use the database configuration of the "example" siteaccess but ignore the value of the "Database" directive and use the specified custom database name instead. If the "example" siteaccess makes use of a database called "foo" on local host, the script will import ISBN ranges to the "test" database on localhost.
php bin/php/updateisbn13.php --url=http://www.isbn-international.org/agency?rmxml=1 --db-database=test –db-user=root –db-password=secret
Import data from isbn international. The script will use the specified custom database name, user name and password, while the type of the database and the host name will still be fetched from the database configuration of the default siteaccess.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.