Hello! I'm creating a larger scale application in PHP and i'm using a .ini file to store some configuration for the user, quite easy to fetch data with the parse_ini_file function (returns array) but how would I write to a ini file, or the most convienient way to do so. That is needed because I am created a installer wizard type of thing and an admin panel, so it would be nice to write to the configuration file. Thanks for any help!
NardCake 30 Posting Pro in Training
Recommended Answers
Jump to Posthttp://stackoverflow.com/questions/5695145/how-to-read-and-write-to-an-ini-file-with-php
Has a write function or use the PEAR module - but as it states - issues can arise with quoting values.
Jump to PostOn further inspection - the person posting the function for writing to ini got the info from here:
http://php.net/manual/en/function.parse-ini-file.php#94414
Seems he forgot to include the
safefilewrite()
code. What a jerk! For plagarism I …
All 7 Replies

LastMitch
NardCake 30 Posting Pro in Training

diafol
LastMitch commented: Nice, I forgot that PEAR has that package! +9

LastMitch

diafol
NardCake 30 Posting Pro in Training
NardCake 30 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.