Re: Quick TXT document stuff

From: Date: Thu, 30 Aug 2001 12:48:13 +0000
Subject: Re: Quick TXT document stuff
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-65266@lists.php.net to get a copy of this message
change the first line to $fp = file("meh.txt"); - Tim On Thu, 2001-08-30 at 16:31, Kyle Smith wrote: > ok i have this code to do whats below, but its not working > > <?php > $fp = fopen("meh.txt","r"); > for($i=0;$i<2;$i++) > { > print "$fp[$i]"; > } > ?> > > > -lk6- > http://www.StupeedStudios.f2s.com > Home of the burning lego man! > > ICQ: 115852509 > MSN: dbzno1fan@hotmail.com > AIM: legokiller666 > > > ----- Original Message ----- > From: "Kyle Smith" <dbzno1fan@hotmail.com> > To: <php-general@lists.php.net> > Sent: Thursday, August 30, 2001 1:15 PM > Subject: [PHP] Quick TXT document stuff > > > Ok im like in a realy hurry here, so can someone please tell me (or show) > how i make a script read the first (top) 1 or 5 lines from a text document? > > Thanks! > > > -lk6- > http://www.StupeedStudios.f2s.com > Home of the burning lego man! > > ICQ: 115852509 > MSN: dbzno1fan@hotmail.com > AIM: legokiller666 > > > >

« previous php.general (#65266) next »