🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.php
Article #53

How do I do this?

#53
From: Jan-
Date: Wed, 23 May 2001 22:38
17 lines
1644 bytes
I want to display only the last line of a txt-file.
Ex. I have a txt-file named 'lines.txt' and it contains this:

This is line one
This in line two
This is line three


Now I wanna make a php script that only displays the last line so only 'This
is line three'.
How do I do this, is it possible?



Regards,

Jan
Technical Details
Message-ID: <kZWO6.8315$FL1.909094@afrodite.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeeds.belnet.be!news.belnet.be!afrodite.telenet-ops.be!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10f92b,39486179625bfc13,start
X-Google-Attributes: gid10f92b,public
X-Google-Thread: 1156bd,39486179625bfc13,start
X-Google-Attributes: gid1156bd,public
X-Google-Thread: f9981,39486179625bfc13,start
X-Google-Attributes: gidf9981,public
X-Google-Thread: 1107bb,39486179625bfc13,start
X-Google-Attributes: gid1107bb,public
X-Google-ArrivalTime: 2001-05-23 15:38:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeeds.belnet.be!news.belnet.be!afrodite.telenet-ops.be!not-for-mail
Reply-To: "Jan-" <jan@radioweb.org>
From: "Jan-" <jan@radioweb.org>
Newsgroups: alt.comp.lang.php,alt.php,cz.comp.lang.php,de.comp.lang.php
Subject: How do I do this?
Lines: 19
Organization: Jan-
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID: <kZWO6.8315$FL1.909094@afrodite.telenet-ops.be>
Date: Wed, 23 May 2001 22:38:08 GMT
NNTP-Posting-Host: 213.118.77.5
X-Complaints-To: abuse@pandora.be
X-Trace: afrodite.telenet-ops.be 990657488 213.118.77.5 (Thu, 24 May 2001 00:38:08 MET DST)
NNTP-Posting-Date: Thu, 24 May 2001 00:38:08 MET DST