Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12180 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6216 invoked by uid 1010); 16 Aug 2004 03:56:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6170 invoked by uid 1007); 16 Aug 2004 03:56:56 -0000 Message-ID: <20040816035655.6169.qmail@pb1.pair.com> To: internals@lists.php.net References: <20040816053546.62ac4a35.bjori@jeshus.com> Date: Sun, 15 Aug 2004 20:56:42 -0700 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 64.142.6.231 Subject: Re: file()+strip_tags() Vs. fgetss(). huge diffrence normal? From: pollita@php.net ("Sara Golemon") Look at the lines that differ. strip_tags() doesn't know anything about tags that started on previous lines. "Hannes Magnusson" wrote in message news:20040816053546.62ac4a35.bjori@jeshus.com... > Hibb. > > Is there suppost to be such a huge diffrence between these two methods? > Would have thougt combination of file() & strip_tags() would result in same results as fgetss() > $file = file ( "http://no2.php.net/" ); > $fp = fopen ( "http://no.php.net/", "r" ); > $i = 0; > > while ( !feof ( $fp ) ) { > echo "fgetss: "; var_dump ( trim ( fgetss ( $fp, 3072 ) ) ); > echo "strip_tags: "; var_dump ( trim ( strip_tags ( $file[ $i++ ] ) ) ) ; > } > ?> > See live example: http://62.249.185.14/examples/fgetss.php > > - Hannes