From Your Search

Make links with PHP from plain text
1 comments      Added on 11/25/07 by Kris
A couple of months ago I needed some PHP code to create links from plain text.

It took a while to find the right stuff but what I found was a script that needed quite a bit of work.

The fruit of my labor was this function that will take plain text URLs like http://www.croncast.com and turn them into http://www.croncast.com.



To use this function:

1. Take your copy, say $copy = "Lorem ipsum http://www.croncast.com"; and feed it to the function like so, echo makeURL($copy)
2. Output would be "Lorem ipsum http://www.croncast.com"
  

Tags
  link from url  create links  make url PHP  plain text to link  



GREEN CELL PHONE CASE FOR VERIZON LG VX9900 ENV ENVY
Current bid: $6.49 on eBay
For LG Dare VX9700 Verizon Clear Hard Cover Case New
Current bid: $6.99 on eBay
See all 128,700 LG items on eBay.  



1 Comments
1

This is cool, but I think you can also do it from the DOS prompt.

 
Posted by: Evan  at: 4:10pm 11/25/2007  

 
Leave a comment
Name:
Email:
Url:
Comment:
 
 
 
 
<< view all shows
 
 



Have us over



Scratch   Archive



Transformers Cybertron Bumblebee Optimus - DS LiTe SKIN
Current bid: $9.89 on eBay


Transformers Cybertron Bumblebee Optimus - DS LiTe SKIN
Current bid: $9.89 on eBay


Transformers Animated Show game SKIN 7 Nintendo DS Lite
Current bid: $9.92 on eBay


220 to 110 Step Down Voltage Converter Transformer 50W
Current bid: $14.18 on eBay


TRANSFORMERS Animated Voyager Lugnut ANIME FIGURINE
Current bid: $42.98 on eBay

See all 23,117 Transformers items on eBay.  
  June 2008 (7)
May 2008 (8)
April 2008 (11)
March 2008 (8)
February 2008 (10)
January 2008 (10)
December 2007 (6)
November 2007 (13)
October 2007 (12)
Sep. 2007 (11)
August 2007 (13)
July 2007 (11)
June 2007 (11)
May 2007 (13)
April 2007 (13)
February 2007 (10)
January 2007 (11)
December 2006 (13)
November 2006 (16)
October 2006 (12)
Sep. 2006 (10)
August 2006 (13)
July 2006 (14)
June 2006 (10)
May 2006 (12)
April 2006 (15)
March 2006 (9)
January 2006 (3)
December 2005 (4)
November 2005 (7)
October 2005 (13)
Sep. 2005 (13)
August 2005 (14)
July 2005 (7)
June 2005 (13)
May 2005 (13)
April 2005 (14)
March 2005 (13)
February 2005 (19)
January 2005 (21)
December 2004 (24)
November 2004 (18)