CodeIgniter Forums
Opening a PHP File Using The Helper Class - 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: Opening a PHP File Using The Helper Class (/showthread.php?tid=35849)



Opening a PHP File Using The Helper Class - El Forum - 11-13-2010

[eluser]Vheissu[/eluser]
Relatively simple problem and hopefully solution. I am basically writing a custom installer script for Wordpress to set-up multi-sites quickly and without file editing. Basically I want to be able to open the wp-config.php file in Wordpress using the Codeigniter read_file function.

The issue is that the read_file function loads the file fine, but doesn't seem to preserve the new lines and returns of the wp-config file. Is there a way to make Codeigniter load files preserving new lines and returns?

At present it just returns it all bunched up with no lines. Thank you.