Re: Converting URL's to hyperlinks.
| From: | LinuxManMikeC | Date: | Fri, 28 Aug 2009 23:22:20 +0000 |
| Subject: | Re: Converting URL's to hyperlinks. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297451@lists.php.net to get a copy of this message | ||
If you have short php tags enabled, assuming you put the url in a
variable called $url...
<a href="<?=$url?>">click here</a>
otherwise...
<a href="<?php echo $url; ?>">click here</a>
or a myriad of other ways...
Depending if there are any special characters involved, there are a
couple functions that would be useful for preparing the url before
outputing it in html, but I don't remember them off the top of my
head. RTFM for that.
On Thu, Aug 27, 2009 at 11:56 AM, John
Meyer<johnmeyer@pueblocomputing.com> wrote:
> What sort of function would I need if I wanted to convert those URLs from
> plain jane text?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>