Changeset 546 for trunk/docs


Ignore:
Timestamp:
Aug 27, 2015 2:35:55 AM (9 years ago)
Author:
anonymous
Message:

Detecting CLI also using php_sapi_name()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/examples/_config.inc.php

    r545 r546  
    9696));
    9797
    98 if (defined('_CLI')) {
     98if (defined('_CLI') || 'cli' === php_sapi_name()) {
    9999    // DB credentials for command line scripts stored in a file with read rights
    100100    // given only to the user who will be executing the scripts: -rw-------
Note: See TracChangeset for help on using the changeset viewer.