Results 1 to 4 of 4

Thread: URL TO [url]URL[/URL]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    URL TO [url]URL[/URL]

    How Can I convert URL like "www.site.com" or like "http://www.site.com" to "(url)http://www.site.com(/url)"

    Provide that : there is at least one space before and after url.

    for example(s):
    _______________
    $text="go here http://www.anysite.com please";

    output:
    $text="go here (url)http://www.anysite.com(/url) please";


    _______________
    $text="go here (http://www.anysite.com please";

    output:
    $text="go here (http://www.anysite.com please";

    no effect because there is no any spaces befor url.




    __________________

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Haven't we written enough of your project for you?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    why is this guy trying to create a bulletin board system when he doesnt even know any basic fundementals of programming?

    it boggles the mind.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    Why not

    Why not if I can do that. and I'm almost finished it , and it's free and I will make an english copy of it near for all.

    about code I write I now , thanks for help.

    That is the code that I write it
    Code:
    	$Signature = eregi_replace("[^src=\"](http://(([A-Za-z0-9~&=;\?%_#./\-])*)([a-zA-Z0-9/]))", " \\1",$Signature);
    	$Signature = eregi_replace("[^http://](www\.(([A-Za-z0-9~&=;\?%_#./\-])*)([a-zA-Z0-9/]))", " \\1",$Signature);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width