Re: Interaction with text files!
| From: | ReDucTor | Date: | Thu, 12 Jul 2001 16:27:36 +0000 |
| Subject: | Re: Interaction with text files! | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62319@lists.php.net to get a copy of this message | ||
probley...
----- Original Message -----
From: "Kyle Smith" <dbzno1fan@hotmail.com>
To: "ReDucTor" <sjdtmv@tpg.com.au>
Sent: Monday, August 13, 2001 10:23 AM
Subject: Re: [PHP] Interaction with text files!
> isnt there an easier way to do number one?
>
>
> -lk6-
> http://www.StupeedStudios.f2s.com
> Home of the burning lego man!
>
> ICQ: 115852509
> MSN: dbzno1fan@hotmail.com
> AIM: legokiller666
>
>
> ----- Original Message -----
> From: "ReDucTor" <sjdtmv@tpg.com.au>
> To: "Kyle Smith" <dbzno1fan@hotmail.com>
> Sent: Thursday, July 12, 2001 9:18 AM
> Subject: Re: [PHP] Interaction with text files!
>
>
> > 1.
> > <?php
> > $file = "file.txt";
> > if(!empty($data))
> > {
> > $fp = fopen($file, "w");
> > fwrite($fp, $data);
> > fclose($fp);
> > ?><b>Data Writen</b><?php
> > }
> > else
> > {
> > ?><form><textarea cols=40 rows=40><?php
> > $filedata = file($file);
> > for($i=0;$i<sizeof($filedata);$i++)
> > {
> > echo $filedata[$i];
> > }
> > ?></textarea><br><input type="submit"
> > value="Save"></form>
> > <?php
> > }
> > ?>
> >
> >
> > 2.
> > <?php
> > $file = file("database.txt");
> > $id = rand(0,sizeof($file));
> > echo $file[$id];
> > ?>
> >
> >
> > ----- Original Message -----
> > From: "Kyle Smith" <dbzno1fan@hotmail.com>
> > To: <php-general@lists.php.net>
> > Sent: Monday, August 13, 2001 10:08 AM
> > Subject: [PHP] Interaction with text files!
> >
> >
> > go to
> >
>
http://www.phpbuilder.com/forum/read.php3?num=2&id=149562&loc=0&thread=14956
> > 2 its all there but.... WAAA!!!
> >
> >
> > -lk6-
> > http://www.StupeedStudios.f2s.com
> > Home of the burning lego man!
> >
> > ICQ: 115852509
> > MSN: dbzno1fan@hotmail.com
> > AIM: legokiller666
> >
> >
> >
> >
> >
>