|
-
Aug 22nd, 2002, 12:58 PM
#1
Thread Starter
Hyperactive Member
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.
__________________
-
Aug 22nd, 2002, 01:44 PM
#2
Stuck in the 80s
Haven't we written enough of your project for you?
-
Aug 27th, 2002, 12:10 PM
#3
Hyperactive Member
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.
-
Aug 27th, 2002, 12:24 PM
#4
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|