-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.php
More file actions
59 lines (53 loc) · 2.09 KB
/
index.php
File metadata and controls
59 lines (53 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="MemCachier PHP Example">
<meta name="author" content="MemCachier">
<link rel="shortcut icon" href="/public/favicon.ico">
<title>PHP caching example</title>
<link href="/public/bootstrap.min.css" rel="stylesheet" media="screen"/>
<link href="/public/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link href="/public/app.css" rel="stylesheet" media="screen"/>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div id="wrap">
<div class="container">
<header class="page-header">
<h1>
PHP caching example
</h1>
</header>
<p class="lead">For any number N, we'll find the largest prime number
less than or equal to N. Because our implementation is incredibly basic, we
don't accept N greater than 10,000. When you submit the form, we'll check the
cache to see if we've calculated the largest prime for N. If we get a hit,
we'll return the results from the cache. If not, we'll do the calculation.</p>
<form action="">
<input type="text" id="n" />
<input type="button" value="Submit" data-compute="true" />
</form>
<p id="prime" class="lead text-info"></p>
</div>
</div>
<footer id="footer">
<div class="container">
<p class="muted credit">Example by
<a href="https://www.memcachier.com">
<img class="brand" src="/public/memcachier-small.png" alt="MemCachier"
title="MemCachier" style="padding-left:8px;padding-right:3px;padding-bottom:3px;"/>
MemCachier
</a>
</p>
</div>
</footer>
<script src="/public/jquery-1.7.2.js"></script>
<script src="/public/bootstrap.js"></script>
<script src="/public/main.js"></script>
</body>
</html>