Reply to Re: Help with syntax - if domain name exists

Your name:

Reply:


Posted by C. on 10/01/06 13:05

affiliateian@gmail.com wrote:
> I am pretty new to php. Can anyone tell me what the proper syntax is
> for checking a particular domain from a web form? For instance, I am
> looking for an if statement that accomplishes this:
>
> if ($domain=*.mydomain.com)
>
> For some reason, can't get the proper syntax so that sciprt will take.

try:

if (fnmatch("*,mydomain.com", $domain)) {

C.

[Back to original 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

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