What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » php, preg replace help

php, preg replace help
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
O.P. php, preg replace help
I'm making a bookmarks feature for my website, and I got the cookie system and all already working, but when users forget to put a http:// before the link, it will point to my server and make the link useless.

Now I want to make a system that checks the links before they get submitted, and add a http:// if it's missing.

Now i'm thinking that I can use preg replace to do this, but I really don't understand how to use it.

If someone can make a simple sample for me and show me a good tutorial to use preg replace I can get on with my project :).

The php.net page about the function is really lacking good explanation.

TIA
[Image: 1-0.png]
             
10-23-2005 11:17 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
php, preg replace help - by Ezra on 10-23-2005 at 11:17 PM
RE: php, preg replace help - by KeyStorm on 10-23-2005 at 11:23 PM
RE: php, preg replace help - by Ezra on 10-23-2005 at 11:24 PM
RE: php, preg replace help - by Stigmata on 10-23-2005 at 11:24 PM
RE: php, preg replace help - by Ezra on 10-23-2005 at 11:32 PM
RE: php, preg replace help - by brian on 10-24-2005 at 01:10 AM
RE: php, preg replace help - by Ezra on 10-24-2005 at 12:47 PM
RE: php, preg replace help - by Stigmata on 10-24-2005 at 01:05 PM
RE: php, preg replace help - by J-Thread on 10-24-2005 at 01:24 PM
RE: php, preg replace help - by Ezra on 10-24-2005 at 02:28 PM
RE: php, preg replace help - by WDZ on 10-24-2005 at 02:32 PM
RE: php, preg replace help - by J-Thread on 10-24-2005 at 03:00 PM
RE: php, preg replace help - by Ezra on 10-24-2005 at 03:27 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On