I think you could use something like this:
//$subject = $_SERVER['HTTP_HOST'];
$subject = 'simon.pmwiki.com:8080';
if(strpos($subject,':')){
$domain = explode(":",$subject);
$domain = $domain[0];
}
else $domain = $subject;
if(strpos($domain,'.')){
$host = explode('.',$domain);
$host = $host[0];
}
else $host = $domain;
if($host =='simon'){
echo "bunch'o'stuff";
}
Not fully tested .
CarlosAB
On 8/20/10, Simon <[email protected]> wrote:
> Has anyone configured their wiki to run on an address such as
>
> *mywiki*.example.com (where example.com is their domain name)
>
> I want to be able to run a farm of PmWikis with URLs such as
>
> example.com
> *mywiki*.example.com
> *yourwiki*.example.com
>
> tia
>
> Simon
>
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users