Re: parsing a string
| From: | John A. Grant | Date: | Wed, 31 Oct 2001 22:14:35 +0000 |
| Subject: | Re: parsing a string | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73083@lists.php.net to get a copy of this message | ||
"Mike Eheler" <meheler@searchbc.com> wrote in message
news:3BCF0AE3.6010406@searchbc.com...
> Beyond that, why not keep it conforming to HTML, and use an <IMG> tag,
> for example:
>
> This is some text <img src="name.jpg" alt="Alt Text"
> processat="server">.
>
> That way if you need to view the page "as-is" in a browser or whatever,
> it'd still look fine.. go grab yourself some good free html parser code,
> and analyse the options. If processat="server" then do your thing, and
> re-write the <img> tag. :)
I think I want something more simple. The idea is to let
the machine do all of the dirty work, not just in looking up
the image size, but also formatting the output.
For example, I'm already using functions like:
emitlink("http://www.microsoft.com","Microsoft");
so I will have a similar function:
emitimg("bird.gif","this is a bird");
that will do all of the <IMG> stuff, not just some of it.
--
John A. Grant * I speak only for myself * (remove 'z' to reply)
Radiation Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here