strip tags not working - any ideas ?

From: Date: Wed, 18 Jun 2003 10:27:36 +0000
Subject: strip tags not working - any ideas ?
Groups: php.general 
Request: Send a blank email to php-general+get-151946@lists.php.net to get a copy of this message
Hello all I am trying to strip all HTML and other tags from a document, I have read the docs and written a 4 line script that should do the job (from my point of view ! ). However it seems to have literally no effect. Heres the script : <? $file=readfile("http://namx.co.uk/webstats/"); if (!($string = strip_tags($file))) print "<br> error ! <br>"; $strings = strtolower($string); print "strings: $strings"; ?> It doesnt lower case anything and it no strips no tags at , bascially its still the same source as it was unchanged. Obviously theres something I am missing here, but what ? Thanks for your thoughts Neil

« previous php.general (#151946) next »