Re: [PHP] Help Formatting String into URL

2004-07-10 Thread Curt Zirzow
* Thus wrote Ryan Schefke: > Hi, > > > > Can someone help me write a short code snippet to format a string to add: > > > > http://www -- if the string is "google.com" and doesn't have > http://www in front of it This is really not a good idea to do blindly, w

[PHP] Help Formatting String into URL

2004-07-10 Thread Ryan Schefke
Hi, Can someone help me write a short code snippet to format a string to add: http://www -- if the string is "google.com" and doesn't have http://www in front of it http:// -- if the string is "www.google.com" and doesn't have http:// in f