Re: Converting URL's to hyperlinks.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx> 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
>
>

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux