RE: [PHP] read file
| From: | fitiux | Date: | Fri, 23 Nov 2001 14:54:16 +0000 |
| Subject: | RE: [PHP] read file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75582@lists.php.net to get a copy of this message | ||
Hi!
you could use something like this..:
$fp=fopen("pathto/".$filewithip,"r");
while ($line=fgets($fp,1024))
{
echo "ip : ".$line;
}
fclose($fp);
cheers,
--Patricio
----- Original Message -----
From: PHP Newbie <thomas.fischbach@gwi-ag.com>
To: <php-general@lists.php.net>
Sent: Friday, November 23, 2001 6:00 AM
Subject: [PHP] read file
> hi,
> i have a file with ips inside
>
> 192.168.1.1
> 192.168.1.2
> ...
> now i must write that in a html table with php.
> i think that is easy, but i'm a newbie and don't find anything how to do
it.
> please help me
> thx