[pmwiki-users] Shared Pages in Farms

Patrick R. Michaud pmichaud at pobox.com
Wed Feb 14 12:23:04 CST 2007


On Wed, Feb 14, 2007 at 01:18:28PM -0500, Sandy wrote:
> Patrick R. Michaud wrote:
> > So, I guess we need to be a bit more liberal in checking for
> > the host name:
> >   ## (:if sandy:) is true when hostname contains "sandy"
> >   $Conditions['sandy'] = (strpos('sandy', $_SERVER['HTTP_HOST']) !== false);
> > ...
> 
> Nope, still not working.

Grrrr, I'll get it right yet!

  ## (:if sandy:) is true when hostname contains "sandy"
  $Conditions['sandy'] = (strpos($_SERVER['HTTP_HOST'], 'sandy') !== false);

  ## (:if cricket:) is true when hostname contains "cricket"
  $Conditions['cricket'] = (strpos($_SERVER['HTTP_HOST'], 'cricket') !== false);

(I had the arguments to strpos() backwards.  Sorry about that!)

Pm



More information about the pmwiki-users mailing list