Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Our GWT application connects to a PHP file running on the Apache web server. This PHP file provides the information from the server, which ends up displayed in the text fields. Here's the source code for the PHP:
<?php
//set the content-type HTTP header
header("Content-Type: text/plain; charset=UTF-8");
//Indicate that the browser should not cache the received value
header("Cache-Control: no-cache");
$info_array = array(
"server" => $_SERVER["SERVER_SOFTWARE"],
"date" => date("l, F j, Y H:i:s",$_SERVER["REQUEST_TIME"]),
"browser" => $_SERVER["HTTP_USER_AGENT"]);
echo json_encode($info_array);
?>