Help Formatting String into URL
| From: | Ryan Schefke | Date: | Sat, 10 Jul 2004 07:09:21 +0000 |
| Subject: | Help Formatting String into URL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190129@lists.php.net to get a copy of this message | ||
Hi,
Can someone help me write a short code snippet to format a string to add:
http://www <http://www/> -- if the string
is "google.com" and doesn't have
http://www <http://www/> in front of it
http:// <http://www/> -- if the string is
"www.google.com" and doesn't
have http:// in front of it
.if you know of a better way to securely check/format a url like this please
let me know.
Thanks,
Ryan