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:
J-Thread
Full Member
***

Avatar

Posts: 467
Reputation: 8
– / Male / –
Joined: Jul 2004
RE: php, preg replace help
What if I enter this link:

https://www.thisisasafesite.com

It'll be:

http://https://www.thisisasafesite.com

You'd better do:

code:
if (!preg_match("/^[a-z]+:\/\//i", $URL) {
   $URL = "http://". $URL;
}

Should be something like that I think...

This post was edited on 10-24-2005 at 01:24 PM by J-Thread.
10-24-2005 01:24 PM
Profile E-Mail PM 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