Majdi Taleb
Majdi Taleb

Reputation: 761

get value from file configuration ini

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

Answers (1)

mgrueter
mgrueter

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

Related Questions