Reputation: 761
I have two file: file of configuration config.ini which contains value of database configuration, and file index.php
how include the file config.ini in index.php and how to get specific value from the config.ini
Upvotes: 0
Views: 119
Reputation: 1420
use http://php.net/manual/de/function.parse-ini-file.php to read the .ini file and get the content as an associative array.
Upvotes: 1