468,103 Members | 1,241 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,103 developers. It's quick & easy.

Config::General implementation in PHP?

I am trying to find out if there is similar functionality as Perls
Config::General module in PHP. I would like to do this project in PHP
and need to read in a conf file that the Perl module uses.

Here is the link to the module for Perl:

<http://search.cpan.org/~tlinden/Config-General-2.24/General.pm>

I have tried searching on Config::General and PHP as well as generic
config module for php, but the results weren't what I had hoped for.

Any help would be appreciated.

-Chris
Jul 17 '05 #1
3 2403
Christopher wrote:
I am trying to find out if there is similar functionality as Perls
Config::General module in PHP. I would like to do this project in PHP
and need to read in a conf file that the Perl module uses.


Don't know if this is what you want.

Check the "PHP Options & Information" page
http://www.php.net/manual/en/ref.info.php

and the ini_get_all() function
http://www.php.net.ini_get_all

or maybe parse_ini_file() ???
http://www.php.net/parse_ini_file
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Jul 17 '05 #2
With total disregard for any kind of safety measures
de**********@yahoo.com (Christopher) leapt forth and uttered:
I am trying to find out if there is similar functionality as
Perls Config::General module in PHP. I would like to do this
project in PHP and need to read in a conf file that the Perl
module uses.

Here is the link to the module for Perl:

<http://search.cpan.org/~tlinden/Config-General-2.24/General.pm>

I have tried searching on Config::General and PHP as well as
generic config module for php, but the results weren't what I
had hoped for.

Any help would be appreciated.

-Chris


http://pear.php.net/package/Config

--
Phil Roberts | Dork Pretending To Be Hard | http://www.flatnet.net/
Jul 17 '05 #3
Thanks guys, looks to be right path.
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Peter Blum | last post: by
1 post views Thread by Eric Cadwell | last post: by
22 posts views Thread by Daniel Billingsley | last post: by
3 posts views Thread by Tim Gallivan | last post: by
4 posts views Thread by Rubbrecht Philippe | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.