You are here: Re: php to display mysql output text as hyperlink « PHP Programming Language « IT news, forums, messages
Re: php to display mysql output text as hyperlink

Posted by Michael Fesser on 08/23/07 16:35

..oO(xx75vulcan)

>How can I parse the output and display a hyperlink one types in the
>body of the entry, into an actual link.
>
>If the body text looks like this for example:
>Today I went to the zoo. If you want to visit the zoo, look at their
>homepage at www.zoo.com I think you'll like it a lot.
>
>How can I get the output to be parsed, recogonize http:// or www. and
>convet the plain text to an actual hyperlink?

Could be done with a regular expression, but it won't be reliable. Not
every URL starts with HTTP or a leading 'www'. What about using BBCode
or something like that?

Micha

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация