Re: How do i read a file and put each line in an array value?

From: Date: Thu, 30 Nov 2000 01:07:39 +0000
Subject: Re: How do i read a file and put each line in an array value?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28066@lists.php.net to get a copy of this message
Looks good? http://www.php.net/manual/function.fopen.php http://www.php.net/manual/function.fread.php http://www.php.net/manual/function.filesize.php <? $data = fread(fopen("/tmp/somefile.txt", 'r'), filesize($db_file)); $data[] = explode("\n", $data); ?> Chris Lee Mediawaveonline.com In article <Pine.HPX.4.04.10011301750470.26117-100000@gamgee.ntc.nokia.com>, climent@stybba.ntc.nokia.com wrote: > > any? > > daTa > >

« previous php.general (#28066) next »