Article View: be.comp.programming
Article #8839Re: PHP: Hoe doe ik dit het best?
From: uws
Date: Wed, 05 Jun 2002 22:08
Date: Wed, 05 Jun 2002 22:08
22 lines
1817 bytes
1817 bytes
Le Greq skrev:
> Maar hoe krijg ik die nu in een php page? Ik heb al enkele dingen
> geprobeerd, maar ik kom niet echt ver, kan iemand mij tips geven?
$filename = "blaat.txt";
$veelrommel = file ($filename);
$searchpattern = "^<!--titel.+begin-->[^<]+<!--titel.+einde-->$";
for ($i =0; $i < count($veelrommel); $i++) {
if ereg($searchpattern, $veelrommel[$i])) {
echo $veelrommel[$i];
}
}
Kan je hier iets mee misschien? Niet getest overigens.
--
[uws] [ nuws (at) xs4all (dot) nl ] >o) __o)
/\\ '/\\
Totaal vernieuwde website op: [ http://www.uwsworld.com ] _\_V _\_V
Technical Details
Message-ID:
<adm1tp$3gu$1@news1.xs4all.nl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!news-hub.cableinet.net!blueyonder!amsnews01.chello.com!newsfeed.wxs.nl!transit.news.xs4all.nl!not-for-mailReferences:
<vLvL8.10194$Fd1.1871188169@hebe.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: 107324,35c2d5281468a45a X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,35c2d5281468a45a X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2002-06-05 15:04:42 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!news-hub.cableinet.net!blueyonder!amsnews01.chello.com!newsfeed.wxs.nl!transit.news.xs4all.nl!not-for-mail From: uws <nuws@xs4all.[s-p-a-m-t-r-a-p]nl> Newsgroups: be.comp.programming,nl.comp.programmeren Subject: Re: PHP: Hoe doe ik dit het best? Date: Thu, 06 Jun 2002 00:08:35 +0200 Organization: [uwsworld] Lines: 23 Message-ID: <adm1tp$3gu$1@news1.xs4all.nl> References: <vLvL8.10194$Fd1.1871188169@hebe.telenet-ops.be> NNTP-Posting-Host: home.uwsworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news1.xs4all.nl 1023314681 3614 194.109.237.238 (5 Jun 2002 22:04:41 GMT) X-Complaints-To: abuse@xs4all.nl NNTP-Posting-Date: 5 Jun 2002 22:04:41 GMT User-Agent: telnet X-Accept-Language: en-us, en-gb