Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PHP] importing text file

0 views
Skip to first unread message

Chris Boget

unread,
Sep 20, 2001, 2:21:40 PM9/20/01
to domi...@yahoo.com, php-g...@lists.php.net
> I would even go for $Something and just $SomethingMore
> with $Something really being $Something-$SomethingElse.
> I don't know if that makes sense.
> Any help would be greatly appreciated.

Take a look at file(); and just loop through the resulting array
and removing all the blank elements.

Chris

Jack Dempsey

unread,
Sep 20, 2001, 2:20:55 PM9/20/01
to domi...@yahoo.com, php-g...@lists.php.net
checkout http://php.net/manual/en/function.file.php

-----Original Message-----
From: Dominica Anderson [mailto:domi...@yahoo.com]
Sent: Thursday, September 20, 2001 2:14 PM
To: php-g...@lists.php.net
Subject: [PHP] importing text file


I have a text file that is formatted as such

Something - SomethingElse
<4 blank lines>
SomethingMore
<4 blank lines>
Something - SomethingElse
<4 blank lines>
SomethingMore
<4 blank lines>
and so on

Anyone have any ideas on what I would use to get this
into seperate
records that are $Something, $SomethingElse,
$SomethingMore for displaying
in php or even importing into mysql?

I would even go for $Something and just $SomethingMore
with $Something
really being $Something-$SomethingElse. I don't know
if that makes sense.

Any help would be greatly appreciated.


__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general...@lists.php.net
For additional commands, e-mail: php-gene...@lists.php.net
To contact the list administrators, e-mail: php-lis...@lists.php.net


Message has been deleted
0 new messages