Miscellaneous

  Home arrow Miscellaneous arrow Configuration File Processing with PHP
MISCELLANEOUS

Configuration File Processing with PHP
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 8
    2003-12-13

    Table of Contents:
  • Configuration File Processing with PHP
  • A Simple Configuration File
  • A Grouped Configuration File
  • Conclusion

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Configuration File Processing with PHP


    (Page 1 of 4 )

    In this tutorial Timothy shows you how to work with configuration files with PHP.

    A lot of PHP scripts are written as quick and dirty solutions to specific problems. Occasionally a programmer may encase his or her set of functions within a class for future use or to share with others, but often times these scripts and classes will go about performing their routines without variation. For the script to change it's performance, one could write his or her script to rely upon a configuration file.

    A configuration file is an external file, usually in a plain text format though it can also be in a binary format. It is read by a program or script upon startup and the values within the file influences how the program behaves.

    In this tutorial I'll take a brief look at how to read in two common types of configuration files and parse them into arrays so that they can be used by the program.

    More Miscellaneous Articles
    More By bluephoenix

    blog comments powered by Disqus

    MISCELLANEOUS ARTICLES

    - Oracle Database XE: Indexes and Sequences
    - Modifying Tables in Oracle Database XE
    - Oracle Database XE: Tables and Constraints
    - More on Oracle Databases and Datatypes
    - Oracle Database XE Datatypes: Datetime and L...
    - Oracle Database XE Datatypes: Character and ...
    - From Databases to Datatypes
    - Firefox 3.6.6 Released with Improved Plug-in...
    - Attention Bloggers: WordPress 3.0 Now Releas...
    - Reflection in PHP 5
    - Inheritance and Other Advanced OOP Features
    - Advanced OOP Features
    - Linux from Scratch V.6.6 Review
    - Linux Gaining in Strength
    - Install Slackware on Your Old PC


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap