Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

All life evolves by the differential survival of replicating entities. -- Dawkins


devel / comp.lang.php / load an INI file from another INI file

SubjectAuthor
* load an INI file from another INI fileFlash
`* Re: load an INI file from another INI fileJ.O. Aho
 `- Re: load an INI file from another INI fileFlash

1
load an INI file from another INI file

<tabbrv$1l4n$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=621&group=comp.lang.php#621

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!+ZAg28UZ7wgLmK6JJPM2jA.user.46.165.242.91.POSTED!not-for-mail
From: new@flash.foto (Flash)
Newsgroups: comp.lang.php
Subject: load an INI file from another INI file
Date: Sat, 9 Jul 2022 09:48:15 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tabbrv$1l4n$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="54423"; posting-host="+ZAg28UZ7wgLmK6JJPM2jA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: it-IT
 by: Flash - Sat, 9 Jul 2022 07:48 UTC

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?

Re: load an INI file from another INI file

<jit3smF1kdnU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=622&group=comp.lang.php#622

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: user@example.net (J.O. Aho)
Newsgroups: comp.lang.php
Subject: Re: load an INI file from another INI file
Date: Sat, 9 Jul 2022 12:33:58 +0200
Lines: 32
Message-ID: <jit3smF1kdnU1@mid.individual.net>
References: <tabbrv$1l4n$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net dzxgKbYmI1bU701szNa0pQZkP5+gDAMTdpZY+0LWKPBn2efhLg
Cancel-Lock: sha1:br8a3mgRBpm/vs/IBk+Alhk5s5s=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
Content-Language: en-US-large
In-Reply-To: <tabbrv$1l4n$1@gioia.aioe.org>
 by: J.O. Aho - Sat, 9 Jul 2022 10:33 UTC

On 09/07/2022 09.48, Flash wrote:
> See
> https://docs.oracle.com/cd/E51711_01/TSG/FAQ/Can%20I%20load%20an%20INI%20file%20from%20another%20INI%20file_.html

Seems that most of the FAQ's are related to FSI, which I assume is one
of Oracles own products and those I wouldn't take that to mean all ini
files has support for loading another ini file with a setting.

php.ini is a quite well documented one and never documented that you
could load another ini file by giving it's location.

PHP do support loading additional/alternative ini files based on the web
service configuration, in general that is limited to load the ini file
that is located in the execution directory.

> 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?

PHP not Oracles FSI, but you can always submit a patch to add this
behavior to PHP, then it's a question it the PHP developers will accept
it or not.

--

//Aho

Re: load an INI file from another INI file

<tabsb5$a8q$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=623&group=comp.lang.php#623

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!+ZAg28UZ7wgLmK6JJPM2jA.user.46.165.242.91.POSTED!not-for-mail
From: new@flash.foto (Flash)
Newsgroups: comp.lang.php
Subject: Re: load an INI file from another INI file
Date: Sat, 9 Jul 2022 14:29:25 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tabsb5$a8q$1@gioia.aioe.org>
References: <tabbrv$1l4n$1@gioia.aioe.org> <jit3smF1kdnU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="10522"; posting-host="+ZAg28UZ7wgLmK6JJPM2jA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: it-IT
X-Notice: Filtered by postfilter v. 0.9.2
 by: Flash - Sat, 9 Jul 2022 12:29 UTC

Il 09/07/22 12:33, J.O. Aho ha scritto:
> ...

thanks

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor