Difference between revisions of "Test Harness PHP"

From Second Life Wiki
Jump to navigation Jump to search
(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_...)
 
 
Line 1: Line 1:
<pre>
[[LSLTest_Http.php]]
<?php


//pulls information from headers
[[LSLTest_HttpReport.php]]
$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.  
[[LSLTest_Rpc.php]]
echo $ownername . "::"
  . $objectname. "::"
  . $objectkey. "::"
  . $ownerkey. "::"
  . $region. "::"
  . $location;
 
?>
 
</pre>

Latest revision as of 15:52, 25 September 2007