Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While using with PHP responses are not returned to be useful #8

Open
narensgh opened this issue Mar 22, 2016 · 6 comments
Open

While using with PHP responses are not returned to be useful #8

narensgh opened this issue Mar 22, 2016 · 6 comments

Comments

@narensgh
Copy link

I installed running composer require from packagist
Below is my code snippet :
require '../vendor/autoload.php';
$ssdb = new SSDB\Client('127.0.0.1', 8888);
echo $ssdb->qsize("MYQUEUE_12"). "\n";
echo $ssdb->get("TOTALSENT"). "\n";

and I am getting the response like

qsize ok 0
get ok "10"

and I'm expecting like

0
10

If I'm not using it in correct way then let me know, or if there is a bug please fix that

@narensgh narensgh changed the title While using with PHP responses are not returned to be usefull While using with PHP responses are not returned to be useful Mar 22, 2016
@narensgh
Copy link
Author

@shen2 @ideawu , Please help me with your your input earliest. I'm stuck on production

@ideawu
Copy link

ideawu commented Mar 22, 2016

Sorry for the delay response.

Please download SSDB.php from https://github.com/ideawu/ssdb/tree/master/api/php this project is deprecated and will be closed soon!

@ideawu
Copy link

ideawu commented Mar 22, 2016

How to use:

<?php
require_once('SSDB.php');
$ssdb = new SimpleSSDB('127.0.0.1', 8888);
$resp = $ssdb->set('key', '123');
$resp = $ssdb->get('key');
echo $resp; // output: 123

@narensgh
Copy link
Author

Thanks @ideawu 👍 :) ,
Can we add SSDB.php to packagist, So that it will be easy to install through composer and version control !

@ideawu
Copy link

ideawu commented Mar 22, 2016

Yes, you can.

@imonildoshi
Copy link

Thanks @narensgh for raising the issues and thanks @ideawu for your update.
cheers..!! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants