CAT | All The Rest
3
Reading and parsing text files with PHP
0 Comments | Posted by Brian M McGarvie in All The Rest
Quite often, the need pops up to read text files, typically these are plain text or CSV (exports from Excel, MS Access or some other source).
This guide will show you the pest practice for doing so.
I have recently added a forum to my site.
If you have any specific requests for some development (PHP,.NET … anything), project management, search engine optimisation… or just want to talk about something random.
I am active on experts-exchange.com and answer many issues, but I will also do that here!
Hope you can join me!
You can register for the form (and my site) here.
Just a quickie if you need to replace NL (New Line or Carriage Return) in CFMX;
<cfset text = replace(text,'#Chr(10)##Chr(13)#','<br>',"All")>
You could also wrap it up in a CFC or a function if it’s going to be widely used.