On Thursday 06 June 2002 23:43, Anthony Ritter wrote:
Is there any way to retrieve data (for example - the text *within* a table)
from another URL so that only the text appears and not the html (tables,
cells, colors, etc.)
strip_tags()
--
Jason Wong - Gremlins Associates -
In theory, I would guess you could use combinations of explode and strstr to
maybe explode on , then run strstr on so you get everything after the
but before the next . Then you'd probably have to implode it or something.
There might be a better way to do it with just substr and strstr so you
I wish I'd seen this before I sent my message!
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 10:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Retrieving text from a URL using PHP
On Thursday 06 June 2002 23:43, Anthony Ritter wrote
Thank you Jason.
I'm still trying to figure out how to implement the strip_tags() function on
the script below so that the output of the URL is straight text.
Please advise if you get a chance.
TR
.
html
head
titleRetrieving text from a
echo strip_tags($contents);
miguel
On Thu, 6 Jun 2002, Anthony Ritter wrote:
I'm still trying to figure out how to implement the strip_tags() function on
the script below so that the output of the URL is straight text.
Please advise if you get a chance.
TR
Thanks Miguel!
TR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
6 matches
Mail list logo