Re: [PHP] www. check still not working

2008-02-15 Thread Anjan Upadhya
// Redirect to WWW public function WWWRedirect() { if ($this-WWW == false) { $redir = Location: http://www.; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header($redir); } } Regards, Anjan Upadhya nihilism machine wrote: ?php class URL

Re: [PHP] www. check still not working

2008-02-15 Thread Nathan Rixham
Anjan Upadhya wrote: // Redirect to WWW public function WWWRedirect() { if ($this-WWW == false) { $redir = Location: http://www.; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header($redir); } } Regards, Anjan Upadhya nihilism machine

Re: [PHP] www. check still not working

2008-02-15 Thread nihilism machine
thank you everyone! On Feb 15, 2008, at 3:53 PM, Nathan Rixham wrote: Anjan Upadhya wrote: // Redirect to WWW public function WWWRedirect() { if ($this-WWW == false) { $redir = Location: http://www.; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];

[PHP] www. check still not working

2008-02-15 Thread nihilism machine
?php class URL { // Public Variables public $HTTPS; public $ServerName; public $WWW; // Public Functions public function __construct() { $this-checkWWW(); } // Check if site is preceeded