[pmwiki-users] Shared Pages in Farms
Sandy
sandy at onebit.ca
Wed Feb 14 12:31:50 CST 2007
Success!!
> 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!)
Ah, the joys of debugging with a slow feedback loop. I'm still pleased
when I get nested for loops both starting and ending at the intended
index. Don't get me started on the useless error statement when I forget
a semi-colon.
Thanks again!
Sandy
More information about the pmwiki-users
mailing list