<?php
if (isset($_GET['logopng']))
{
	$data = <<<IMAGE
[encoded data, 8701 characters]
l/8Df+8XDp+g0JUAAAAASUVORK5CYII=
IMAGE;


	header('Content-type: image/png');
	echo base64_decode($data);
	exit;
}
elseif (isset($_GET['background']))
{
	$data = <<<IMAGE
[encoded data, 6083 characters]
wjAcwzI8wzRcFcM2fMM4nMM6vMM83MM+/MNArLmBAAA7
IMAGE;

	header('Content-type: image/gif');
	echo base64_decode($data);
	exit;
}
elseif (isset($_GET['loader']))
{
	$data = <<<IMAGE
R0lGODlhEAALAPQAAP///wBmzNro9tDi9Ory+gZpzQBmzC6B1YKz5WCf3rrV8CJ60kqS2oq452Sh
377X8SZ80wRozE6U2+bv+djn9vT4/DiH19zp9/L2+7bS76DF68re8+70+gAAAAAAAAAAACH/C05F
VFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAA
EAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2WQgAh+QQJ
CwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLyicBYE7EYkYAgAh+QQJ
CwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz7SN6zIawJcDwIK9W/HISxGBzdHT
uBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAALAAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V5
5zuaDacDyIQ+YrBH+hWPzJFzOQQaeavWi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme
1rJY5kRRk7hI0mJSVUXJtF3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAA
ABAACwAABTcgII5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2
y6C+4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txxwlwv2
isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRFGTqLLuqnIcJVK0
DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA
IMAGE;
	header('Content-type: image/gif');
	echo base64_decode($data);
	exit;
}
elseif (isset($_GET['ssl_check']))
{
	header('Content-type: text/plain; charset=utf-8');

	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, 'https://email.us-east-1.amazonaws.com');
	curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
	curl_setopt($ch, CURLOPT_HEADER, false);
	curl_setopt($ch, CURLOPT_NOBODY, true);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_TIMEOUT, 5184000);
	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 120);
	curl_setopt($ch, CURLOPT_NOSIGNAL, true);
	curl_setopt($ch, CURLOPT_USERAGENT, 'aws-sdk-php/compat-www');
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
	curl_setopt($ch, CURLOPT_VERBOSE, true);

	curl_exec($ch);
	echo (curl_getinfo($ch, CURLINFO_SSL_VERIFYRESULT) === 0) ? 'false' : 'true';
	curl_close($ch);

	exit;
}

// Include the compatibility test logic
require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'sdk_compatibility.inc.php';

header('Content-type: text/html; charset=UTF-8');

?><!DOCTYPE html>

<html lang="en">
<head>
<title>AWS SDK for PHP: Environment Compatibility Test</title>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW, NOARCHIVE" />

<script type="text/javascript" charset="utf-8">
/*!
  * Reqwest! A x-browser general purpose XHR connection manager
  * copyright Dustin Diaz 2011
  * https://github.com/ded/reqwest
  * license MIT
  */
!function(window){function serial(a){var b=a.name;if(a.disabled||!b)return"";b=enc(b);switch(a.tagName.toLowerCase()){case"input":switch(a.type){case"reset":case"button":case"image":case"file":return"";case"checkbox":case"radio":return a.checked?b+"="+(a.value?enc(a.value):!0)+"&":"";default:return b+"="+(a.value?enc(a.value):"")+"&"}break;case"textarea":return b+"="+enc(a.value)+"&";case"select":return b+"="+enc(a.options[a.selectedIndex].value)+"&"}return""}function enc(a){return encodeURIComponent(a)}function reqwest(a,b){return new Reqwest(a,b)}function init(o,fn){function error(a){o.error&&o.error(a),complete(a)}function success(resp){o.timeout&&clearTimeout(self.timeout)&&(self.timeout=null);var r=resp.responseText;if(r)switch(type){case"json":resp=window.JSON?window.JSON.parse(r):eval("("+r+")");break;case"js":resp=eval(r);break;case"html":resp=r}fn(resp),o.success&&o.success(resp),complete(resp)}function complete(a){o.complete&&o.complete(a)}this.url=typeof o=="string"?o:o.url,this.timeout=null;var type=o.type||setType(this.url),self=this;fn=fn||function(){},o.timeout&&(this.timeout=setTimeout(function(){self.abort(),error()},o.timeout)),this.request=getRequest(o,success,error)}function setType(a){return/\.json$/.test(a)?"json":/\.jsonp$/.test(a)?"jsonp":/\.js$/.test(a)?"js":/\.html?$/.test(a)?"html":/\.xml$/.test(a)?"xml":"js"}function Reqwest(a,b){this.o=a,this.fn=b,init.apply(this,arguments)}function getRequest(a,b,c){if(a.type!="jsonp"){var f=xhr();f.open(a.method||"GET",typeof a=="string"?a:a.url,!0),setHeaders(f,a),f.onreadystatechange=readyState(f,b,c),a.before&&a.before(f),f.send(a.data||null);return f}var d=doc.createElement("script");window[getCallbackName(a)]=generalCallback,d.type="text/javascript",d.src=a.url,d.async=!0;var e=function(){a.success&&a.success(lastValue),lastValue=undefined,head.removeChild(d)};d.onload=e,d.onreadystatechange=function(){/^loaded|complete$/.test(d.readyState)&&e()},head.appendChild(d)}function generalCallback(a){lastValue=a}function getCallbackName(a){var b=a.jsonpCallback||"callback";if(a.url.slice(-(b.length+2))==b+"=?"){var c="reqwest_"+uniqid++;a.url=a.url.substr(0,a.url.length-1)+c;return c}var d=new RegExp(b+"=([\\w]+)");return a.url.match(d)[1]}function setHeaders(a,b){var c=b.headers||{};c.Accept=c.Accept||"text/javascript, text/html, application/xml, text/xml, */*",b.crossOrigin||(c["X-Requested-With"]=c["X-Requested-With"]||"XMLHttpRequest");if(b.data){c["Content-type"]=c["Content-type"]||"application/x-www-form-urlencoded";for(var d in c)c.hasOwnProperty(d)&&a.setRequestHeader(d,c[d],!1)}}function readyState(a,b,c){return function(){a&&a.readyState==4&&(twoHundo.test(a.status)?b(a):c(a))}}var v=window.v;!v&&typeof require!="undefined"&&(v=require("valentine"));var twoHundo=/^20\d$/,doc=document,byTag="getElementsByTagName",head=doc[byTag]("head")[0],xhr="XMLHttpRequest"in window?function(){return new XMLHttpRequest}:function(){return new ActiveXObject("Microsoft.XMLHTTP")},uniqid=0,lastValue;Reqwest.prototype={abort:function(){this.request.abort()},retry:function(){init.call(this,this.o,this.fn)}},reqwest.serialize=function(a){var b=a[byTag]("input"),c=a[byTag]("select"),d=a[byTag]("textarea");return(v(b).chain().toArray().map(serial).value().join("")+v(c).chain().toArray().map(serial).value().join("")+v(d).chain().toArray().map(serial).value().join("")).replace(/&$/,"")},reqwest.serializeArray=function(a){for(var b=this.serialize(a).split("&"),c=0,d=b.length,e=[],f;c<d;c++)b[c]&&(f=b[c].split("="))&&e.push({name:f[0],value:f[1]});return e};var old=window.reqwest;reqwest.noConflict=function(){window.reqwest=old;return this},window.reqwest=reqwest}(this)
</script>

<style type="text/css">
body {
	font:14px/1.4em "Helvetica Neue", Helvetica, "Lucida Grande", Roboto, "Droid Sans", Ubuntu, Verdana, Arial, Clean, Sans, sans-serif;
	letter-spacing:0px;
	color:#333;
	margin:0;
	padding:0;
	background:#fff url(<?php echo pathinfo(__FILE__, PATHINFO_BASENAME); ?>?background) repeat-x top left;
}

div#site {
	width:650px;
	margin:20px auto 0 auto;
}

a {
	color: #326EA1;
	text-decoration: underline;
	padding: 1px 2px;
	-webkit-transition: background-color 0.15s;
	-webkit-transition: color 0.15s;
	-moz-transition: background-color 0.15s;
	-moz-transition: color 0.15s;
	transition: background-color 0.15s;
	transition: color 0.15s;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
}

a:hover, a.hover {
	color: #fff;
	background-color: #333;
	text-decoration: none;
	padding: 1px 2px;
}

p {
	margin:0;
	padding:5px 0;
}

em {
	font-style:normal;
	background-color:#ffc;
}

ul, ol {
	margin:10px 0 10px 20px;
	padding:0 0 0 15px;
}

ul li, ol li {
	margin:0 0 4px 0;
	padding:0 0 0 3px;
}

h2 {
	font-size:18px;
	padding:0;
	margin:0 0 10px 0;
}

h3 {
	font-size:16px;
	padding:0;
	margin:20px 0 5px 0;
}

h4 {
	font-size:14px;
	padding:0;
	margin:15px 0 5px 0;
}

pre, code {
    font-family: "Panic Sans", "Bitstream Vera Sans Mono", Monaco, Consolas, "Andale Mono", monospace;
	background-color: #F0F0F0;
	border-radius: 3px 3px 3px 3px;
	padding: 0 3px;
	font-size: 1em;
}

em strong {
    text-transform: uppercase;
}

table.chart {
	border-collapse:collapse;
}

table.chart th {
	background-color:#eee;
	padding:2px 3px;
	border:1px solid #fff;
}

table.chart td {
	text-align:center;
	padding:2px 3px;
	border:1px solid #eee;
}

table.chart tr.enabled td {
	/* Leave this alone */
}

table.chart tr.disabled td,
table.chart tr.disabled td a {
	color:#999;
	font-style:italic;
}

table.chart tr.disabled td a {
	text-decoration:underline;
}

div.chunk {
	margin:0;
	padding:10px;
	border-bottom:1px solid #ccc;
}

div.important {
	background-color:#ffc;
}

div.ok {
	background-color:#cfc;
}

div.error {
	background-color:#fcc;
}

div.important h3 {
	margin: 7px 0 5px 0;
}

.footnote,
.footnote a {
	font:12px/1.4em "Helvetica Neue", Helvetica, "Lucida Grande", Verdana, Arial, Clean, Sans, sans-serif;
	color:#aaa;
}

.footnote em {
	background-color:transparent;
	font-style:italic;
}
</style>

</head>

<body>

<div id="site">
	<div id="content">

		<div class="chunk">
			<h2 style="text-align:center;"><img src="<?php echo pathinfo(__FILE__, PATHINFO_BASENAME); ?>?logopng" alt="SDK Compatibility Test" title="SDK Compatibility Test" /></h2>

			<h3>Minimum Requirements</h3>
			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="chart">
				<thead>
					<tr>
						<th>Test</th>
						<th>Should Be</th>
						<th>What You Have</th>
					</tr>
				</thead>
				<tbody>
					<tr class="<?php echo ($php_ok) ? 'enabled' : 'disabled'; ?>">
						<td>PHP</td>
						<td>5.2 or newer</td>
						<td><?php echo phpversion(); ?></td>
					</tr>
					<tr class="<?php echo ($curl_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/curl">cURL</a></td>
						<td>7.15.0 or newer, with SSL</td>
						<td><?php echo ($curl_ok) ? ($curl_version['version'] . ' (' . $curl_version['ssl_version'] . ')') : ($curl_version['version'] . (in_array('https', $curl_version['protocols'], true) ? ' (with ' . $curl_version['ssl_version'] . ')' : ' (without SSL)')); ?></td>
					</tr>
					<tr class="<?php echo ($simplexml_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/simplexml">SimpleXML</a></td>
						<td>Enabled</td>
						<td><?php echo ($simplexml_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($dom_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/dom">DOM</a></td>
						<td>Enabled</td>
						<td><?php echo ($dom_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($spl_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/spl">SPL</a></td>
						<td>Enabled</td>
						<td><?php echo ($spl_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($json_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/json">JSON</a></td>
						<td>Enabled</td>
						<td><?php echo ($json_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($pcre_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/pcre">PCRE</a></td>
						<td>Enabled</td>
						<td><?php echo ($pcre_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($file_ok) ? 'enabled' : 'disabled'; ?>">
						<td>File System <a href="http://php.net/file_get_contents">Read</a>/<a href="http://php.net/file_put_contents">Write</a></td>
						<td>Enabled</td>
						<td><?php echo ($file_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
				</tbody>
			</table>

			<h3>Optional Extensions</h3>
			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="chart">
				<thead>
					<tr>
						<th>Test</th>
						<th>Would Like To Be</th>
						<th>What You Have</th>
					</tr>
				</thead>
				<tbody>
					<tr class="<?php echo ($openssl_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/openssl">OpenSSL</a></td>
						<td>Enabled</td>
						<td><?php echo ($openssl_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($zlib_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/zlib">Zlib</a></td>
						<td>Enabled</td>
						<td><?php echo ($zlib_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($apc_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/apc">APC</a></td>
						<td>Enabled</td>
						<td><?php echo ($apc_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($xcache_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://xcache.lighttpd.net">XCache</a></td>
						<td>Enabled</td>
						<td><?php echo ($xcache_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($memcache_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/memcache">Memcache</a></td>
						<td>Enabled</td>
						<td><?php echo ($memcache_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($memcached_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/memcached">Memcached</a></td>
						<td>Enabled</td>
						<td><?php echo ($memcached_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($pdo_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/pdo">PDO</a></td>
						<td>Enabled</td>
						<td><?php echo ($pdo_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($pdo_sqlite_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/pdo-sqlite">PDO-SQLite</a></td>
						<td>Enabled</td>
						<td><?php echo ($pdo_sqlite_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($sqlite2_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/sqlite">SQLite 2</a></td>
						<td>Enabled</td>
						<td><?php echo ($sqlite2_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
					<tr class="<?php echo ($sqlite3_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/sqlite3">SQLite 3</a></td>
						<td>Enabled</td>
						<td><?php echo ($sqlite3_ok) ? 'Enabled' : 'Disabled'; ?></td>
					</tr>
				</tbody>
			</table>

			<h3>Settings for php.ini</h3>
			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="chart">
				<thead>
					<tr>
						<th>Test</th>
						<th>Would Like To Be</th>
						<th>What You Have</th>
					</tr>
				</thead>
				<tbody>
					<tr class="<?php echo (!$ini_open_basedir) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/open_basedir">open_basedir</a></td>
						<td>off</td>
						<td><?php echo ($ini_open_basedir) ? 'on' : 'off'; ?></td>
					</tr>
					<tr class="<?php echo (!$ini_safe_mode) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/safe_mode">safe_mode</a></td>
						<td>off</td>
						<td><?php echo ($ini_safe_mode) ? 'on' : 'off'; ?></td>
					</tr>
					<tr class="<?php echo ($ini_zend_enable_gc) ? 'enabled' : 'disabled'; ?>">
						<td><a href="http://php.net/zend.enable_gc">zend.enable_gc</a></td>
						<td>on</td>
						<td><?php echo ($ini_zend_enable_gc) ? 'on' : 'off'; ?></td>
					</tr>
				</tbody>
			</table>

			<h3>Other</h3>
			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="chart">
				<thead>
					<tr>
						<th>Test</th>
						<th>Would Like To Be</th>
						<th>What You Have</th>
					</tr>
				</thead>
				<tbody>
					<tr class="<?php echo ($int64_ok) ? 'enabled' : 'disabled'; ?>">
						<td><a href="https://aws.amazon.com/amis/4158">Architecture</a></td>
						<td>64-bit</td>
						<td><?php echo ($int64_ok) ? '64-bit' : '32-bit'; ?><?php if (is_windows()): ?>
						(<a href="#win64">why?</a>)
						<?php endif; ?></td>
					</tr>
				</tbody>
			</table>

			<br>
		</div>

		<?php if ($compatiblity == REQUIREMENTS_ALL_MET): ?>
		<div class="chunk important ok">
			<h3>Bottom Line: Yes, you can!</h3>
			<p>Your PHP environment is ready to go, and can take advantage of all possible features!</p>
		</div>
		<div class="chunk">
			<h3>What's Next?</h3>
			<p>You can download the latest version of the <a href="http://aws.amazon.com/sdkforphp"><strong>AWS SDK for PHP</strong></a> and install it by <a href="http://aws.amazon.com/articles/4261">following the instructions</a>. Also, check out our library of <a href="http://aws.amazon.com/articles/4262">screencasts and tutorials</a>.</p>
			<p>Take the time to read <a href="http://aws.amazon.com/articles/4261">"Getting Started"</a> to make sure you're prepared to use the AWS SDK for PHP. No seriously, read it.</p>
		</div>
		<?php elseif ($compatiblity == REQUIREMENTS_MIN_MET): ?>
		<div class="chunk important ok">
			<h3>Bottom Line: Yes, you can!</h3>
			<p>Your PHP environment is ready to go! <i>There are a couple of minor features that you won't be able to take advantage of, but nothing that's a show-stopper.</i></p>
		</div>
		<div class="chunk">
			<h3>What's Next?</h3>
			<p>You can download the latest version of the <a href="http://aws.amazon.com/sdkforphp"><strong>AWS SDK for PHP</strong></a> and install it by <a href="http://aws.amazon.com/articles/4261">following the instructions</a>. Also, check out our library of <a href="http://aws.amazon.com/articles/4262">screencasts and tutorials</a>.</p>
			<p>Take the time to read <a href="http://aws.amazon.com/articles/4261">"Getting Started"</a> to make sure you're prepared to use the AWS SDK for PHP. No seriously, read it.</p>
		</div>
		<?php else: ?>
		<div class="chunk important error">
			<h3>Bottom Line: We're sorry&hellip;</h3>
			<p>Your PHP environment does not support the minimum requirements for the <strong>AWS SDK for PHP</strong>.</p>
		</div>
		<div class="chunk">
			<h3>What's Next?</h3>
			<p>If you're using a shared hosting plan, it may be a good idea to contact your web host and ask them to install a more recent version of PHP and relevant extensions.</p>
			<p>If you have control over your PHP environment, we recommended that you upgrade your PHP environment. Check out the "Set Up Your Environment" section of the <a href="http://aws.amazon.com/articles/4261">Getting Started Guide</a> for more information.</p>
		</div>
		<?php endif; ?>

		<?php if ($compatiblity >= REQUIREMENTS_MIN_MET): ?>
		<div class="chunk">
			<h3>Recommended settings for config.inc.php</h3>
			<p>Based on your particular server configuration, the following settings are recommended.</p>
			<br>
			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="chart">
				<thead>
					<tr>
						<th>Configuration Setting</th>
						<th>Recommended Value</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td><code>default_cache_config</code></td>
						<?php if ($apc_ok): ?>
						<td><code>apc</code></td>
						<?php elseif ($xcache_ok): ?>
						<td><code>xcache</code></td>
						<?php elseif ($file_ok): ?>
						<td>Any valid, server-writable file system path</td>
						<?php endif; ?>
					</tr>
					<tr>
						<td><code>certificate_authority</code></td>
						<?php if (is_windows()): ?>
						<td id="ssl_check"><code>true</code></td>
						<?php else: ?>
						<td id="ssl_check"><img src="<?php echo pathinfo(__FILE__, PATHINFO_BASENAME); ?>?loader" alt="Loading..."></td>
						<?php endif; ?>
					</tr>
				</tbody>
			</table>
			<br>
		</div>
		<?php endif; ?>

		<div class="chunk">
			<h3>Give me the details!</h3>
			<?php if ($compatiblity >= REQUIREMENTS_MIN_MET): ?>
			<ol>
				<li><em>Your environment meets the minimum requirements for using the <strong>AWS SDK for PHP</strong>!</em></li>

				<?php if (version_compare(PHP_VERSION, '5.3.0') < 0): ?>
				<li>You're still running <strong>PHP <?php echo PHP_VERSION; ?></strong>. The PHP 5.2 family is no longer supported by the PHP team, and future versions of the AWS SDK for PHP will <i>require</i> PHP 5.3 or newer.</li>
				<?php endif; ?>

				<?php if ($openssl_ok): ?>
				<li>The <a href="http://php.net/openssl">OpenSSL</a> extension is installed. This will allow you to use <a href="http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">CloudFront Private URLs</a> and decrypt Microsoft&reg; Windows&reg; instance passwords.</li>
				<?php endif; ?>

				<?php if ($zlib_ok): ?>
				<li>The <a href="http://php.net/zlib">Zlib</a> extension is installed. The SDK will request gzipped data whenever possible.</li>
				<?php endif; ?>

				<?php if (!$int64_ok): ?>
				<li>You're running on a <strong>32-bit</strong> system. This means that PHP does not correctly handle files larger than 2GB (this is a <a href="http://www.google.com/search?q=php+2gb+32-bit">well-known PHP issue</a>). For more information, please see: <a href="http://docs.php.net/manual/en/function.filesize.php#refsect1-function.filesize-returnvalues">PHP filesize: Return values</a>.</li>
				<?php if (is_windows()): ?>
				<li id="win64"><em>Note that PHP on Microsoft® Windows® <a href="http://j.mp/php64win">does not support 64-bit integers at all</a>, even if both the hardware and PHP are 64-bit.</em></li>
				<?php endif; ?>
				<?php endif; ?>

				<?php if ($ini_open_basedir || $ini_safe_mode): ?>
				<li>You have <a href="http://php.net/open_basedir">open_basedir</a> or <a href="http://php.net/safe_mode">safe_mode</a> enabled in your <code>php.ini</code> file. Sometimes PHP behaves strangely when these settings are enabled. Disable them if you can.</li>
				<?php endif; ?>

				<?php if (!$ini_zend_enable_gc): ?>
				<li>The PHP garbage collector (available in PHP 5.3+) is not enabled in your <code>php.ini</code> file. Enabling <a href="http://php.net/zend.enable_gc">zend.enable_gc</a> will provide better memory management in the PHP core.</li>
				<?php endif; ?>

				<?php
				$storage_types = array();
				if ($file_ok) { $storage_types[] = '<a href="http://php.net/file_put_contents">The file system</a>'; }
				if ($apc_ok) { $storage_types[] = '<a href="http://php.net/apc">APC</a>'; }
				if ($xcache_ok) { $storage_types[] = '<a href="http://xcache.lighttpd.net">XCache</a>'; }
				if ($sqlite_ok && $sqlite3_ok) { $storage_types[] = '<a href="http://php.net/sqlite3">SQLite 3</a>'; }
				elseif ($sqlite_ok && $sqlite2_ok) { $storage_types[] = '<a href="http://php.net/sqlite">SQLite 2</a>'; }
				if ($memcached_ok) { $storage_types[] = '<a href="http://php.net/memcached">Memcached</a>'; }
				elseif ($memcache_ok) { $storage_types[] = '<a href="http://php.net/memcache">Memcache</a>'; }
				?>
				<li>Storage types available for response caching: <?php echo implode(', ', $storage_types); ?></li>
			</ol>

				<?php if (!$openssl_ok && !$zlib_ok): ?>
				<p class="footnote"><strong>NOTE:</strong> You're missing the <a href="http://php.net/openssl">OpenSSL</a> extension, which means that you won't be able to take advantage of <a href="http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">CloudFront Private URLs</a> or decrypt Microsoft&reg; Windows&reg; instance passwords. You're also missing the <a href="http://php.net/zlib">Zlib</a> extension, which means that the SDK will be unable to request gzipped data from Amazon and you won't be able to take advantage of compression with the <i>response caching</i> feature.</p>
				<?php elseif (!$zlib_ok): ?>
				<p class="footnote"><strong>NOTE:</strong> You're missing the <a href="http://php.net/zlib">Zlib</a> extension, which means that the SDK will be unable to request gzipped data from Amazon and you won't be able to take advantage of compression with the <i>response caching</i> feature.</p>
				<?php elseif (!$openssl_ok): ?>
				<p class="footnote"><strong>NOTE:</strong> You're missing the <a href="http://php.net/openssl">OpenSSL</a> extension, which means that you won't be able to take advantage of <a href="http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">CloudFront Private URLs</a> or decrypt Microsoft&reg; Windows&reg; instance passwords.</p>
				<?php endif; ?>

			<?php else: ?>
			<ol>
				<?php if (!$php_ok): ?>
					<li><strong>PHP:</strong> You are running an unsupported version of PHP.</li>
				<?php endif; ?>

				<?php if (!$curl_ok): ?>
					<li><strong>cURL:</strong> The <a href="http://php.net/curl">cURL</a> extension is not available. Without cURL, the SDK cannot connect to &mdash; or authenticate with &mdash; Amazon's services.</li>
				<?php endif; ?>

				<?php if (!$simplexml_ok): ?>
					<li><strong>SimpleXML:</strong> The <a href="http://php.net/simplexml">SimpleXML</a> extension is not available. Without SimpleXML, the SDK cannot parse the XML responses from Amazon's services.</li>
				<?php endif; ?>

				<?php if (!$dom_ok): ?>
					<li><strong>DOM:</strong> The <a href="http://php.net/dom">DOM</a> extension is not available. Without DOM, the SDK cannot transliterate JSON responses from Amazon's services into the common SimpleXML-based pattern used throughout the SDK.</li>
				<?php endif; ?>

				<?php if (!$spl_ok): ?>
					<li><strong>SPL:</strong> <a href="http://php.net/spl">Standard PHP Library</a> support is not available. Without SPL support, the SDK cannot autoload the required PHP classes.</li>
				<?php endif; ?>

				<?php if (!$json_ok): ?>
					<li><strong>JSON:</strong> <a href="http://php.net/json">JSON</a> support is not available. AWS leverages JSON heavily in many of its services.</li>
				<?php endif; ?>

				<?php if (!$pcre_ok): ?>
					<li><strong>PCRE:</strong> Your PHP installation doesn't support Perl-Compatible Regular Expressions (PCRE). Without PCRE, the SDK cannot do any filtering via regular expressions.</li>
				<?php endif; ?>

				<?php if (!$file_ok): ?>
					<li><strong>File System Read/Write:</strong> The <a href="http://php.net/file_get_contents">file_get_contents()</a> and/or <a href="http://php.net/file_put_contents">file_put_contents()</a> functions have been disabled. Without them, the SDK cannot read from, or write to, the file system.</li>
				<?php endif; ?>
			</ol>
			<?php endif; ?>
		</div>

		<div class="chunk">
			<p class="footnote"><strong>NOTE</strong>: Passing this test does not guarantee that the AWS SDK for PHP will run on your web server &mdash; it only ensures that the requirements have been addressed.</p>
		</div>
	</div>

</div>

<?php if (!is_windows()): ?>
<script type="text/javascript" charset="utf-8">
reqwest('<?php echo pathinfo(__FILE__, PATHINFO_BASENAME); ?>?ssl_check', function(resp) {
	$sslCheck = document.getElementById('ssl_check');
	$sslCheck.innerHTML = '';
	$sslCheck.innerHTML = '<code>' + resp + '</code>';
});
</script>
<?php endif; ?>

</body>
</html>
