You are here: Re: PHP Beginner question « PHP Programming Language « IT news, forums, messages
Re: PHP Beginner question

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация