Re: How to recognise url in a block of text

From: Date: Tue, 17 Oct 2006 14:13:50 +0000
Subject: Re: How to recognise url in a block of text
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-243246@lists.php.net to get a copy of this message
Thanks Alan. Retuen receipt disabled. Who can help regarding my problem below. I will appreciate any assistance. Regards, Bunmi www.ayserve.net., www.budelak.com AYSERVE.NET wrote:
Hello, Thanks Toby. The aim is to show the entire text taken from the database (mysql) with the link within the text showing as a clickable link. Not just to remove entirely. Regards, Bunmi www.ayserve.net www.budelak.com Toby Osbourn wrote:
Hello, I would suggest first of all splitting the block of text into single words (I would assume you would use " " as the delimiter for this assuming the text stored on the database is readable and not just random words delimited by something else). The use the eregi() function to see if any of the words contain either www. or http://www. If they do simply store them in an array or directly output them to your page. Regards Toby On 17/10/06, *AYSERVE.NET <http://AYSERVE.NET>* <info@ayserve.net <mailto:info@ayserve.net>> wrote:
    Please, I need help on how to to recognise url in a block of text
    being
    retrieved from a database and present it as a link within that text.
    I will appreciate any help.
    Regards,
    Bunmi
    --
    PHP General Mailing List ( http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php
-- http://www.borninblood.co.uk


« previous php.general (#243246) next »