Re: Converting URL's to hyperlinks.

From: Date: Sat, 29 Aug 2009 07:07:18 +0000
Subject: Re: Converting URL's to hyperlinks.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-297460@lists.php.net to get a copy of this message
----- Original Message ----- From: "John Meyer" <johnmeyer@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 > >

« previous php.general (#297460) next »