Showing posts with label Zend_Config. Show all posts
Showing posts with label Zend_Config. Show all posts

Read and write configuration files the format xml with Zend_Config


1. Read ini file.


 I have a configuration file /application/configs/db.ini as follows:



We use the class to read file Zend_Config_Xml db.xml


Output:



2.Write xml file




My01.xml output file:



Read and write configuration files the format ini with Zend_Config


1. Read ini file.


 I have a configuration file /application/configs/db.ini as follows:



We use the class to read file Zend_Config_Ini db.ini


Output:



2.Write ini file




My01.ini output file: