John W. Holmes wrote:
Jason Wong wrote:

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 ...


Actually, it's an integer telling how many bytes was read by readfile().

us2.php.net/readfile


if (!($string = strip_tags($file))) print "<br> error ! <br>";
$strings = strtolower($string);



.. you're trying to perform string ops on an array.



you mean an integer...


Use fopen() or file() to actually read the file data into a variable.


Indeed fopen and fread works fine. Thanks for the heads up


Neil


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to