Croncast Facebook Group  Follow Kris on Twitter 
From Za RSS Feed

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






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

http://emlazzqi.com/laptop-screen-fuzzy.php>fvyIf you demand to make dough you bear to be agreeable to do the work.
The at most main differences between these two being expanse, open out and form of data entry. ayh

 
Posted by: itertootaroma  at: 3:59pm 08/19/2009  

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



Have us over



Scratch   Archive


  March 2010 (8)
February 2010 (12)
January 2010 (1)
August 2009 (1)
June 2009 (1)
May 2009 (3)
April 2009 (5)
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)