Re: [PHP] reading from files

2004-09-17 Thread Jason Wong
On Saturday 18 September 2004 04:58, Steve Brown wrote: > > I am wondering how to read lines from a file to a php array? I would like > > to integrate a logfile into a html site. Is it possible to read line by > > line and to check how many lines there are in total? > > I'm new here, so someone ple

Re: [PHP] reading from files

2004-09-17 Thread Greg Donald
On Fri, 17 Sep 2004 15:58:04 -0500, Steve Brown <[EMAIL PROTECTED]> wrote: > I'm new here, so someone please tell me if "RTFM" is frowned upon as a > response. :) RTFA and find out :) -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.ne

RE: [PHP] reading from files

2004-09-17 Thread Jay Blanchard
[snip] I'm new here, so someone please tell me if "RTFM" is frowned upon as a response. :) [/snip] Yes. Becasue you have forgotten the also important STFA and STFW. All or nothingall or nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

RE: [PHP] reading from files

2004-09-17 Thread Gryffyn, Trevor
I usually use file(): http://www.php.net/manual/en/function.file.php -TG > -Original Message- > From: Merlin [mailto:[EMAIL PROTECTED] > Sent: Friday, September 17, 2004 4:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] reading from files > > > Hi there, > > I am wondering how to read

Re: [PHP] reading from files

2004-09-17 Thread John Holmes
From: "Merlin" <[EMAIL PROTECTED]> I am wondering how to read lines from a file to a php array? I would like to integrate a logfile into a html site. Is it possible to read line by line and to check how many lines there are in total? Thank you for any hint on that, Hint: http://www.php.net/manua

RE: [PHP] reading from files

2004-09-17 Thread Jay Blanchard
[snip] I am wondering how to read lines from a file to a php array? I would like to integrate a logfile into a html site. Is it possible to read line by line and to check how many lines there are in total? [/snip] Start with http://www.php.net/fopen -- PHP General Mailing List (http://www.php.n

Re: [PHP] reading from files

2004-09-17 Thread Steve Brown
> I am wondering how to read lines from a file to a php array? I would like to > integrate a logfile into a html site. Is it possible to read line by line and to > check how many lines there are in total? I'm new here, so someone please tell me if "RTFM" is frowned upon as a response. :) http://w

Re: [PHP] reading from files

2004-09-17 Thread Greg Donald
On Fri, 17 Sep 2004 22:16:43 +0200, Merlin <[EMAIL PROTECTED]> wrote: > I am wondering how to read lines from a file to a php array? I would like to > integrate a logfile into a html site. Is it possible to read line by line and to > check how many lines there are in total? > > Thank you for any h

Re: [PHP] reading from files

2004-09-17 Thread Jason Davidson
use the functoin file, it does exactly that. http://ca3.php.net/manual/en/function.file.php Jason Merlin <[EMAIL PROTECTED]> wrote: > > Hi there, > > I am wondering how to read lines from a file to a php array? I would like to > integrate a logfile into a html site. Is it possible to read li

Re: [PHP] reading from files

2004-09-17 Thread Mark
--- Merlin <[EMAIL PROTECTED]> wrote: > Hi there, > > I am wondering how to read lines from a file to a php array? I > would like to > integrate a logfile into a html site. Is it possible to read line > by line and to > check how many lines there are in total? http://www.php.net/file > > Th

RE: [PHP] reading from files

2004-09-17 Thread Daniel Purdy
[snip] I am wondering how to read lines from a file to a php array? I would like to integrate a logfile into a html site. Is it possible to read line by line and to check how many lines there are in total? Thank you for any hint on that, [/snip] http://www.php.net/fgets is a good starting poin