Opening a PHP File Using The Helper Class

#1
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.