Re: strip tags not working - any ideas ?
| From: | John W. Holmes | Date: | Wed, 18 Jun 2003 10:58:04 +0000 |
| Subject: | Re: strip tags not working - any ideas ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151954@lists.php.net to get a copy of this message | ||
Jason Wong wrote:
On Wednesday 18 June 2003 18:27, Neil wrote:Actually, it's an integer telling how many bytes was read by readfile(). us2.php.net/readfileI 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/");$file is an array ...
you mean an integer... Use fopen() or file() to actually read the file data into a variable. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.comif (!($string = strip_tags($file))) print "<br> error ! <br>"; $strings = strtolower($string);.. you're trying to perform string ops on an array.