Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #19051

load an INI file from another INI file

From Flash <new@flash.foto>
Newsgroups comp.lang.php
Subject load an INI file from another INI file
Date 2022-07-09 09:48 +0200
Organization Aioe.org NNTP Server
Message-ID <tabbrv$1l4n$1@gioia.aioe.org> (permalink)

Show all headers | View raw


See 
https://docs.oracle.com/cd/E51711_01/TSG/FAQ/Can%20I%20load%20an%20INI%20file%20from%20another%20INI%20file_.html

Therefore

$ tree /var/tmp/config
├── FSISYS.INI
├── FSIUSER.INI
└── sub
     └── config.INI

$ cat FSISYS.INI
< INIFiles >
     File = sub/config.INI

$ cat FSIUSER.INI
< INIFiles >
     File = sub/config.INI

$ PHP_INI_SCAN_DIR=/var/tmp/config php -i \
| grep INI
PHP_INI_SCAN_DIR => /var/tmp/config
$_SERVER['PHP_INI_SCAN_DIR'] => /var/tmp/config

You can already guess that the file sub/config.INI is not loading.
Here is a more specific examination

$ PHP_INI_SCAN_DIR=/var/tmp/config php -i \
| grep sub/config.INI || echo NOT FOUND
NOT FOUND

Why?

Back to comp.lang.php | Previous | NextNext in thread | Find similar | Unroll thread


Thread

load an INI file from another INI file Flash <new@flash.foto> - 2022-07-09 09:48 +0200
  Re: load an INI file from another INI file "J.O. Aho" <user@example.net> - 2022-07-09 12:33 +0200
    Re: load an INI file from another INI file Flash <new@flash.foto> - 2022-07-09 14:29 +0200

csiph-web