Re: [PHP] www. not working

2008-02-16 Thread Valedol
On Sat, 16 Feb 2008 05:45:54 +0300, Jim Lucas <[EMAIL PROTECTED]> wrote: Valedol wrote: just try "if ($POS !== 0) {" well, that said, isn't the first position in a string 0 ? So, in the above example the OP would need // This would mean that www. was found any w

Re: [PHP] www. not working

2008-02-15 Thread Valedol
On Fri, 15 Feb 2008 23:46:57 +0300, nihilism machine <[EMAIL PROTECTED]> wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas? checkWWW(); $this->ServerName