On Fri, Aug 29, 2008 at 11:33 AM, Dan Joseph <[EMAIL PROTECTED]> 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

Reply via email to