----- Original Message ----- 
From: "John Meyer" <johnme...@pueblocomputing.com>
To: <php-general@lists.php.net>
Sent: Friday, August 28, 2009 1:56 AM
Subject: [PHP] Converting URL's to hyperlinks.

> What sort of function would I need if I wanted to convert those URLs 
> from plain jane text?

You should encode the url before printing as usual way

$url = htmlentities('http://www.mysite.com/index.php?act=1&t=10');

echo "<a href=\"{$url}\">mysite</a>";

- Eric

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

Reply via email to