NYCPHP Meetup

NYPHP.org

[nycphp-talk] Querying the .ini file ...

Hans Zaunere zaunere at yahoo.com
Thu May 29 16:08:53 EDT 2003


--- Jon Baer <jonbaer at jonbaer.net> wrote:
> That is kinda what I don't understand, via php you should be able to use
> the -d flag to report the ini values?
> 
> php -d register_globals
> 
> From -h:
> -d foo[=bar]     Define INI entry foo with value 'bar'

This is typically used to *set* ini directives, which will then be used
during the script run.

> I was under the impression that it could/would invoke ini_get() and
> ini_alter() respectively but it just hangs (on W32).

I'm not sure why it would hang, but then I have never done it on windows.

Also take a look at:

http://us2.php.net/ini_get
http://us2.php.net/ini_get_all
http://us2.php.net/parse_ini_file

depending on what you need to accomplish.

H








> 
> - Jon
> 
> ----- Original Message ----- 
> From: "Analysis & Solutions" <danielc at analysisandsolutions.com>
> To: "NYPHP Talk" <talk at nyphp.org>
> Sent: Thursday, May 29, 2003 7:43 AM
> Subject: Re: [nycphp-talk] Querying the .ini file ...
> 
> 
> > Jon:
> >
> > On Thu, May 29, 2003 at 10:13:33AM -0400, Jon Baer wrote:
> > >
> > > Is there another way to find out your config?  Thanks.
> >
> > PHP has the ini_get() function:  http://us2.php.net/ini_get
> >
> > --Dan
> >
> > -- 
> >      FREE scripts that make web and database programming easier
> >            http://www.analysisandsolutions.com/software/
> >  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
> >  4015 7th Ave #4AJ, Brooklyn NY    v: 718-854-0335   f: 718-854-0409
> >
> >
> > 
> >
> >
> >
> 
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 




More information about the talk mailing list