Giter VIP home page Giter VIP logo

php-configuration-ini-parser-class's Introduction

PHP INI CONFIGURATION CLASS

This class is used to encapuslate and serve the configuration settings from a 
config.ini file to the script or class using it.

PHP 5

LICENSE: This file and it's contents are licensed under the MIT license, which is
available at the following URL: http://creativecommons.org/licenses/MIT/
Basically, you're free to do whatever you like with the code.  I just ask to leave
some sort of credit to the author in the re-written/derivative work.

@category   Configuration
@package    PHP INI Configuration Class
@author     David Miles <[email protected]>
@copyright  ©2010 David Miles
@license    http://creativecommons.org/licenses/MIT/ MIT License
@version    1.0
@since      File available since Release 1.0 (Apr. 02, 2010)
@link       http://www.webdesignparlor.com/ Web Design Parlor - Author Site
@link       http://github.com/amereservant/PHP-Configuration-INI-Parser-Class.git

INSTRUCTIONS:
   * Copy the files from this project (config.ini & config.class.php) to your project's
     directory, which can be a sub-directory if you like.
     
   * Edit the config.ini file and add your information accordingly.
   
   * require/include the config.class.php file at the top of your script, then simply
     use Config::getParam('database', 'user'); with the first parameter being the 
     section name and the second parameter being the value in that section.
     
     Just keep repeating this throughout your script whereever you need specific data
     from your configuration file.
     
NOTES:
    * Sections are optional and if you are PHP savvy and wish to remove them,
      start with the parse_ini_file('config.ini', true); on Line 66 and remove the
      second parameter from that function.
      You can see http://php.net/parse_ini_file for more information about this.
      You will then need to adjust the method getParam so it doesn't use the second
      parameter anymore.

php-configuration-ini-parser-class's People

Contributors

amereservant avatar

Watchers

郭华伟 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.