| 
 Posted by Toby Inkster on 05/31/06 18:34 
David Haynes wrote: 
 
> I use a convention that all urls in redirect must either be absolute or  
> start with /, but I see your point. substr($url, 0, 5) != 'http:' would  
> be better. 
 
redirect('https://www.example.com'); 
 
:-) 
 
Try: 
 
	!preg_match('/^(ftp|http|https):/i', $url) 
 
--  
Toby A Inkster BSc (Hons) ARCS 
Contact Me  ~ http://tobyinkster.co.uk/contact
 
[Back to original message] 
 |