RE: [PHP] deleting lines from files
| From: | Adam Plocher | Date: | Wed, 07 Aug 2002 17:16:57 +0000 |
| Subject: | RE: [PHP] deleting lines from files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111541@lists.php.net to get a copy of this message | ||
Haven't tested this, but this might get you on the right track.
$i = 0;
unset($buffer);
$fp = fopen("file.txt","r")
while (!feof($fd))
{
if ($i >= 2)
$buffer .= fgets($fd,4096);
$i++;
}
echo $buffer;
-----Original Message-----
From: Cirkit Braker [mailto:cirkitbraker@hotmail.com]
Sent: Wednesday, August 07, 2002 11:58 AM
To: php-general@lists.php.net
Subject: [PHP] deleting lines from files
how can I delete the first 2 lines from an uploaded text file.
if I open the file with fopen what do I use to delete the lines.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php