Articles in the httpd category

  1. App App App App

    <?php
    
    function get_key($pi) {
        $terms = strlen($pi) != 0 ? $pi : 'Monday';
        $key = end(explode('/', $terms));
        return $key;
    }
    
    $key = get_key($_SERVER['PATH_INFO']);
    $mckey = 'demowebapp.' . $key;
    
    $mc = new Memcache;
    $mc->connect('192.168.11.199', 11211);
    $val = $mc->get($mckey);
    if (!$val) {
        $pgconn = pg_connect("host=192.168.11.199 dbname=demowebapp");
        $res = pg_query …

Page 4 / 5