RE: [PHP] ODBC text file connection problem
| From: | Jay Blanchard | Date: | Tue, 10 Sep 2002 18:47:59 +0000 |
| Subject: | RE: [PHP] ODBC text file connection problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115875@lists.php.net to get a copy of this message | ||
[snip]
I've got one for ya. I've been trying to conenct to a csv text file =
(comma delimited, \r\n row separators, and " text qualifiers) using the =
odbc_connect command and then run simple select statements through it. =
It doesn't work and I'm at a loss for why.
[/snip]
Why not use fopen()? A CSV file is a plain text file and therefore cannot be
treated as a database. The CSV file has no data engine with which to connect
to.
HTH!
Jay
*****************************************************
* Texas PHP Developers Conf Spring 2003 *
* T Bar M Resort & Conference Center *
* New Braunfels, Texas *
* Contact jay.blanchard@niicommunications.com *
* *
* Want to present a paper or workshop? Contact now! *
*****************************************************