HEX
Server: LiteSpeed
System: Linux oxygen.shetabanhost.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: rasapedi (1695)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //home/rasapedi/old.rasapedia.com/test.php
    <?php

    $cfg_host = 'localhost' ;
    $cfg_port = '6379' ; // or 0 if use socket
    $cfg_pswd = '' ; // Set if has
    $cfg_db = 0 ;


    $conn = new Redis() ;
    $conn->connect( $cfg_host, $cfg_port ) ;
    if ( $cfg_pswd ) $conn->auth( $cfg_pswd ) ;
    if ( $cfg_db ) $conn->select( $cfg_db ) ;

    var_dump( $conn->ping() ) ; // Should give a `+PONG`
    ?>