Code Comments
Programming Forum and web based access to our favorite programming groups.Hello, I want to read a file in PHP. The file is made in Linux, so the problem is: a have no line-ends. The file is like: line 1□line2□□line3□line4 The line-end is in Linux replaced by a □. How to convert it back to a line-end?? How to read those files??? Kind regards, M. de Vogel
Post Follow-up to this message$data = str_replace("□", "\n", $data);
But, if im not mistaken, those are HTML special characters. So, just
in case your file has more, unrecognizeable characters:
$data = html_entity_decode($data);
Unchecked, of course.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.