CodeIgniter Forums
Read Content from a .txt file - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Read Content from a .txt file (/showthread.php?tid=5296)

Pages: 1 2


Read Content from a .txt file - El Forum - 01-17-2008

[eluser]cinewbie81[/eluser]
Just knew that it's actually not only '=' will cause the problem, other character like '$' will as well cause the problem ..
now im confused how to proceed :0


Read Content from a .txt file - El Forum - 01-17-2008

[eluser]BlueCamel[/eluser]
Check out the php.net/parse_ini_file docs. Look at the NOTES section near the bottom of the page for some gotchas and workarounds. In short, its seems like you need to be quoting your values in the .ini file for proper formating. Also, the first comment on that same page looks helpful regarding parsing of values that have = in them.