Test Harness PHP

From Second Life Wiki
Revision as of 15:50, 25 September 2007 by Vektor Linden (talk | contribs) (New page: <pre> <?php //pulls information from headers $ownername = $_SERVER['HTTP_X_SECONDLIFE_OWNER_NAME']; $objectname = $_SERVER['HTTP_X_SECONDLIFE_OBJECT_NAME']; $objectkey = $_SERVER['HTTP_...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
<?php

//pulls information from headers		
$ownername = $_SERVER['HTTP_X_SECONDLIFE_OWNER_NAME'];
$objectname = $_SERVER['HTTP_X_SECONDLIFE_OBJECT_NAME'];
$objectkey = $_SERVER['HTTP_X_SECONDLIFE_OBJECT_KEY'];
$ownerkey = $_SERVER['HTTP_X_SECONDLIFE_OWNER_KEY'];
$region = $_SERVER['HTTP_X_SECONDLIFE_REGION'];
$location = $_SERVER['HTTP_X_SECONDLIFE_LOCAL_POSITION'];

//gives the info back in a :: seperated list. 
echo $ownername . "::" 
   . $objectname. "::" 
   . $objectkey. "::" 
   . $ownerkey. "::" 
   . $region. "::" 
   . $location;

?>