public function getValues(array $requestedInfo)
    {
        $this->connect();

        $request = '';
        foreach ($requestedInfo as $info) {
            $request .= $this->buildNvpair($info, '');
        }
        fwrite($this->_sock, $this->buildPacket(self::GET_VALUES, $request, 0));

        $resp = $this->readPacket();
        if ($resp['type'] == self::GET_VALUES_RESULT) {
            return $this->readNvpair($resp['content'], $resp['length']);
        } else {
            throw new \Exception('Unexpected response type, expecting GET_VALUES_RESULT');
        }
    }
public function getValues(array $requestedInfo)
    {
        $this->connect();

        $request = '';
        foreach ($requestedInfo as $info) {
            $request .= $this->buildNvpair($info, '');
        }
        fwrite($this->_sock, $this->buildPacket(self::GET_VALUES, $request, 0));

        $resp = $this->readPacket();
        if ($resp['type'] == self::GET_VALUES_RESULT) {
            return $this->readNvpair($resp['content'], $resp['length']);
        } else {
            throw new \Exception('Unexpected response type, expecting GET_VALUES_RESULT');
        }
    }
public function getValues ( array $ requestedInfo ) { $ this -> connect ( ) ; $ request = '' ; foreach ( $ requestedInfo as $ info ) { $ request .= $ this -> buildNvpair ( $ info , '' ) ; } fwrite ( $ this -> _sock , $ this -> buildPacket ( self :: GET_VALUES , $ request , 0 ) ) ; $ resp = $ this -> readPacket ( ) ; if ( $ resp [ 'type' ] == self :: GET_VALUES_RESULT ) { return $ this -> readNvpair ( $ resp [ 'content' ] , $ resp [ 'length' ] ) ; } else { throw new \ Exception ( 'Unexpected response type, expecting GET_VALUES_RESULT' ) ; } }
Get Informations on the FastCGI application

@param array $requestedInfo information to retrieve
@return array
Get Informations on the FastCGI application