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]
|