Re: strip tags not working - any ideas ?
| From: | Jason Wong | Date: | Wed, 18 Jun 2003 10:45:02 +0000 |
| Subject: | Re: strip tags not working - any ideas ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151949@lists.php.net to get a copy of this message | ||
On Wednesday 18 June 2003 18:27, Neil wrote:
> 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/");
$file is an array ...
> if (!($string = strip_tags($file))) print "<br> error ! <br>";
> $strings = strtolower($string);
.. you're trying to perform string ops on an array.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Every path has its puddle.
*/