@pcthugMay 10.2007 — #If you are attempting to append the http protocol identifier to the beginning of strings that do not start with either http:// or https:// use:[code=php]$url = !preg_match('/^https?:///', $url) ? "http://$url" : $url;[/code]
@h3r0authorMay 22.2007 — #[code=php]$url_parsed = parse_url($url); if ( empty($url_parsed['scheme']) ) { $url = 'http://'.$url; }[/code]This takes into account any valid protocol (such as [I]ftp://[/I]).[/QUOTE] Yes, this is exactly what I am looking for. Thanks a lot ?