Em Andamento

PHP Function Written - Convert link to html link

We are new to this site/service, so this is a test project for us, but we have many others coming up. We're looking for someone to do a great job for a fair price so we can give more of these types of projects in the future. Here it is...

We would like a function written in PHP that will receive a block of plain text, find anything inside the text that looks like a link, and convert that text into an HTML link. A quick example of how we would utilize this function:

// start code

$sample_text = "If you would like to become a computer programmer,n read more here: www.programmingtutorials.com/php.aspx";

$formatted_text = addHtmlLinks($sample_text);

echo $formatted_text;

// end code

this should print:

If you would like to become a computer programmer,

read more here: <a href="http://www.programmingtutorials.com/php.aspx">www.programmingtutorials.com/php.aspx</a>

*Input parameters: *

plain text, can be multiple lines

*Links *either start with http://, or with www., or contain an alpha-numeric word followed by ".com", ".org", ".net" or ".edu":

* http://<valid url here>

ex: [url removed, login to view] [url removed, login to view] [url removed, login to view]

* www.<url>

ex: [url removed, login to view] [url removed, login to view] [url removed, login to view]

* .com, .org, .net, and .edu

ex: [url removed, login to view] [url removed, login to view]

Be sure to prefix all links in the <A> tag with "http://": [url removed, login to view] will link as [url removed, login to view]

*Output: *

return the original block of text with the links embedded.

Ex:

---text block---

Computer programming (often shortened to programming or coding) is the process of writing, testing,

and maintaining the source code - [url removed, login to view] - of computer programs.

According to [url removed, login to view] the source code is written in a programming language.

---end text block---

the return value should be:

---return---

Computer programming (often shortened to programming or coding) is the process of writing, testing,

and maintaining the source code - <a href="http://en.wikipedia.org/wiki/Source_code">http://en.wikipedia.org/wiki/Source_code</a> - of computer programs.

According to <a href="http://tinyurl.com/4zrhg">tinyurl.com/4zrhg</a> the source code is written in a programming language.

---return---

Habilidades: PHP

Ver mais: convert link html, convert links html, convert html link, php convert url link, convert url link php, convert html links, converter html link, convert link php, php convert link, convert text link html, php convert links html, html convert link, php convert links, link html converter, link php function, html link php function, html link convert, convertire link html, convert html links php, convert html php links, php convert text link, convertir link html, html convertir link, convert text links html, convert text html links

Acerca do Empregador:
( 0 comentários ) San Francisco, United States

ID do Projeto: #168917

Premiar a:

pasak

I have the function.

$30 USD em 1 dia
(2 Avaliações)
1.8

26 freelancers estão ofertando em média $30 para este trabalho

BirdWatcher

Hello! I can do it for You for only $30. It will take me no longer than few hours. if You choose me I will do my best to do it as soon as possible. thanks BirdWatcher

$30 USD in 0 dias
(62 Comentários)
7.4
DevExpert

Not a big job, let's proceed with it.

$32 USD em 1 dia
(124 Comentários)
7.3
kopila123

Please view pm

$30 USD em 1 dia
(104 Comentários)
6.3
Amiri

Hi, Can be easily done using RegExp. Yours, Mohami

$30 USD em 1 dia
(36 Comentários)
5.4
phpfarmer

Please refer PMB for more Detail.

$30 USD in 0 dias
(28 Comentários)
5.3
SudarMuthu

Ready to start.

$30 USD in 0 dias
(30 Comentários)
5.3
satttadv

I think your job is done check pmb

$30 USD in 0 dias
(26 Comentários)
4.8
mgauthier

Hi,I can get this done super fast for you! I'm looking for a long term relationship, working relationship that is ;o). Hope to hear from you soon! -Mike

$30 USD in 0 dias
(2 Comentários)
4.6
hanssvane

Hello I am an expert on php and mysql and actually it is very simple please see the pm. Hans

$30 USD in 0 dias
(13 Comentários)
4.3
redteam

hi,please check the Pm,thanks

$35 USD em 1 dia
(4 Comentários)
3.3
nwhellams

A simple matter of preg_replace. This is no problem

$30 USD em 1 dia
(4 Comentários)
3.3
Ellemer

Hello, I can help you

$30 USD in 0 dias
(7 Comentários)
3.0
spwnik

Hello. I can du this by using regular expresions.. quite easy.Just choose me, and about few hoursto that you will get this function done. Tom.

$30 USD in 0 dias
(5 Comentários)
2.3
arikaterin

Hello, have perl regex experience and can done it quickly after weekend. Thanks, Sergey.

$30 USD em 1 dia
(2 Comentários)
1.7
php4ahsan

Hello sir,im ready o take challenge o work on this scrip ,i can easily do this script using efficient techniques,Thanks

$35 USD in 0 dias
(1 Comentário)
1.6
bobo420

Hello, I'm interested in doing this project, contact me if you decide to take my bid. Regards, Bojan

$30 USD in 3 dias
(3 Comentários)
1.3
thrdrewtech

Dear TMPUSA, I can do this for you no problem in minimal time and even for cheaper--$25. I have alot of professional experience and also personal time dedicated to web development including PHP scripting and developmen Mais

$30 USD in 0 dias
(1 Comentário)
1.1
Nohusuro

I have plenty of experience with PHP, this will be an easy task.

$30 USD em 1 dia
(1 Comentário)
1.0
strelets

Please see project message board.

$30 USD in 0 dias
(4 Comentários)
0.2
burunduchechek

I can write this function. No problem :)

$30 USD em 1 dia
(0 Comentários)
0.0