From 27933363485968abb2b16249a5df0db4c5edcbe0 Mon Sep 17 00:00:00 2001 From: 3x0k1d <3x0k1d@gmail.com> Date: Mon, 5 May 2025 06:46:12 +0300 Subject: [PATCH] try --- checkers/php-redis.php | 10 +--------- index.php | 4 +--- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/checkers/php-redis.php b/checkers/php-redis.php index c061ae4..39536bb 100644 --- a/checkers/php-redis.php +++ b/checkers/php-redis.php @@ -11,15 +11,7 @@ $r = new PredisClient([ 'password' => 'Ir3Roovu', 'database' => 15, ]); - - -$r->hset('user-session:123', 'name', 'John'); -$r->hset('user-session:123', 'surname', 'Smith'); -$r->hset('user-session:123', 'company', 'Redis'); -$r->hset('user-session:123', 'age', 29); -echo var_export($r->hgetall('user-session:123')), PHP_EOL; - - +$r->connect(); echo $r->set('foo', 'bar'), PHP_EOL; // >>> OK diff --git a/index.php b/index.php index 10fdea4..63324de 100644 --- a/index.php +++ b/index.php @@ -29,9 +29,7 @@ for ($i = 0; $i < count($module_list); $i++) { else { echo '

'. $module_list[$i] .":"; echo '' . 'Тык ' . `

`; - - echo''. $module_list[$i] .''; - if (!extension_loaded($module_list[$i])) + if (!extension_loaded("php-igbinary")) { echo '
Module: '. $module_list[$i] . ' not loaded
'; }