Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('./services/ManageCache.php');
- require_once('./wrappers/SMemcache.php');
- ?>
- <!DOCTYPE html>
- <html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "en" lang = "en">
- <head>
- <meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" />
- <meta name = "language" content = "en" />
- <title>Страница с кеш данными</title>
- </head>
- <body>
- <?php
- $cache = new \services\ManageCache(new \wrappers\SMemcache());
- $im = $cache->get('imageCache');
- if (!$cache) {
- $im = \ImageCreate(200, 100)
- or die ("Ошибка при создании изображения");
- $im = \ImageColorAllocate($im, 255, 0, 0);
- }
- header("Content-type: image/png");
- imagejpeg($im);
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement