On Fri, Aug 29, 2008 at 11:33 AM, Dan Joseph <dmjoseph@xxxxxxxxx> wrote: > You could use substr() (www.php.net/substr) > > if ( substr( $web_site, 0, 7 ) != "http://" ) > { > $web_site = "http://" . $web_site; > } > > -- > -Dan Joseph Or parse_url() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php