RE: [PHP] ASP guts needs help.

2004-09-22 Thread Daniel Purdy

[snip]

On Wed, 22 Sep 2004 00:09:01 -0600, LW Ellis <[EMAIL PROTECTED]>
wrote:
> I'm new to php, but am familar with ASP.
> I have this code to open and read a text file.
> What I need is to take out the 'while' and present the data one line 
> at a time. I read up on fgetcsv, but we will be using one text file 
> per record. I just need to format how it is displayed.

I'm afraid I'm a little fuzzy on what you're attempting to do.  Do you
have a text file with CSV data, and you're trying to split that data
into an array, of which you'd like each element displayed on a separate
line?

[/snip]
I'm also a little fuzzy on what you are attempting, but, it sounds to me
like you might wanna check out the fseek function.
http://www.php.net/fseek
HTH!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ASP guts needs help.

2004-09-22 Thread Andrew Kreps
On Wed, 22 Sep 2004 00:09:01 -0600, LW Ellis <[EMAIL PROTECTED]> wrote:
> I'm new to php, but am familar with ASP.
> I have this code to open and read a text file.
> What I need is to take out the 'while' and present the data one line at a
> time.
> I read up on fgetcsv, but we will be using one text file per record.
> I just need to format how it is displayed.

I'm afraid I'm a little fuzzy on what you're attempting to do.  Do you
have a text file with CSV data, and you're trying to split that data
into an array, of which you'd like each element displayed on a
separate line?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Solved [PHP] ASP guts needs help.

2004-09-22 Thread Burhan Khalid
LW Ellis wrote:
Never mind...
As usual, about the time you ask for help, the brain gets unstuck and 
you find the solution.
You should post back with a solution (append SOLVED to your subject) so 
that it becomes part of the thread (and archived). This way, next time 
someone else has a similar issue, they can search the archives for the 
post and find the answer.

Not that many people search the archives, but hey -- here's hopin :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Solved [PHP] ASP guts needs help.

2004-09-21 Thread LW Ellis
Never mind...
As usual, about the time you ask for help, the brain gets unstuck and you 
find the solution.

Thanx anyways
Leon 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] ASP guts needs help.

2004-09-21 Thread LW Ellis
I'm new to php, but am familar with ASP.
I have this code to open and read a text file.
What I need is to take out the 'while' and present the data one line at a 
time.
I read up on fgetcsv, but we will be using one text file per record.
I just need to format how it is displayed.

Under fgetcvs there was some code to display records $data[0] and 
1,2,3,4,etc.

Can someone please point me in the right direction?
\n";
   }
   fclose($fp);
?>
Thanx in advance.
Later,
Leon 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php