Croncast Facebook Group  Follow Kris on Twitter 
From Za RSS Feed

Make links with PHP from plain text
2 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  



Harry Potter & the Deathly Hallows signed by JK Rowling
Current bid: $1,500.00 on eBay
Harry Potter and the Deathly Hallows by J. K. Rowlin...
Current bid: $10.00 on eBay
See all 223 Deathly Hallows items on eBay.  



2 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  
2

thanks!

 
Posted by: john m  at: 10:21am 06/14/2009  

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



Have us over



Scratch   Archive



Nintendo Wii Remote Nunchuck SET Game Controller+Case
Current bid: $35.83 on eBay


Kidz Sports: Crazy Golf (Wii)
Current bid: $7.00 on eBay


NINTENDO Wii HD HI-DEF COMPONENT CABLE CORD TV RGB NEW
Current bid: $5.99 on eBay


Great Deal on Wii and Games!!!!
Current bid: $157.50 on eBay


Faceplate Skins fit Guitar Hero 3 Xbox 360 Wii PS3 WOOD
Current bid: $15.95 on eBay

See all 57,528 Nintendo Wii items on eBay.  
  June 2009 (1)
April 2009 (1)
March 2009 (7)
February 2009 (11)
January 2009 (6)
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)