Re: Checking for http://

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux