Just a general comment, but I want to point out that many people block the referrer from being sent and so depending on it is often not a good solution. Bill -------------------------------- Message: 1 Date: Sat, 18 Dec 2004 10:48:42 -0000 From: "Jason" <jason@xxxxxxxxxx> Subject: Re: Wildcards??? Jeff thank you.....i must have had a blonde moment or something.. this should work but to avoid the none use of www simply do this: if((substr($_SERVER["HTTP_REFERER"],0,32) == "http://www.domain.com/index.php")XOR (substr($_SERVER ["HTTP_REFERER"],0,28) == "http://domain.com/index.php")) ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/