ok here is an example that someone gave me...it
works..it splits up the file but it comes out as
$data_values[0] = Something
$data_values[1] = SomethingElse
$data_values[0] = SomethingMore
$data_values[0] = Something
$data_values[1] = SomethingElse
$data_values[0] = SomethingMore
and so on
how
checkout http://php.net/manual/en/function.file.php
-Original Message-
From: Dominica Anderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 2:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] importing text file
I have a text file that is formatted as such
Something - Someth
> 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.
3 matches
Mail list logo