Re: PHP & Parsing Text Files
| From: | Jean-Christian Imbeault | Date: | Thu, 08 May 2003 06:47:42 +0000 |
| Subject: | Re: PHP & Parsing Text Files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146792@lists.php.net to get a copy of this message | ||
Tom Smith wrote:
I discussed the issue with my employers web developer and he seems to think that PHP has issues reading and parsing text files (such as a comma-seperated CSV file containg fax numbers).And what is his reasoning for this? Sounds like a pretty uninformed statement ... does he have anything to back it up?
Are there any functions that will support parsing CSV filesSure, look at all the string functions for one. split() and explode() come to mind.
inserting the parsed fields that get passed to the console (I'm using the shell_exec() statements to run sendfax)?Any of the exec() family of command should also server you. Of course it all depends on 'how' you need to pass these to your external program. Jean-Christian Imbeault