array('header' => 'Content-type: '.$requestTyp, 'method' => 'POST', 'timeout' => 0.5, 'content' => $contend)))); }else{ return @file_get_contents($URL); } } catch (Exception $e) { echo "(HTTP REQUEST) error while conntect to remote server. : ".$URL; } } function sendInworldIM($fromUUID, $toUUID, $fromName, $targetURL, $text) { $rawXML = "grid_instant_messageposition_x0position_y0position_z0to_agent_id".$toUUID."from_agent_session00000000-0000-0000-0000-000000000000im_session_id".$fromUUID."from_agent_name".$fromName."from_agent_id".$fromUUID."binary_bucketAA==region_handle0region_id00000000-0000-0000-0000-000000000000parent_estate_id1timestamp".time()."dialogAA==offlineAA==from_groupFALSEmessage".$text.""; getDataFromHTTP($targetURL, $rawXML, "text/xml"); } ?>