That doesn't look like pheanstalk to me.  Normally a put would look like this: 

$b = new Pheanstalk("192.168.253.46");
$id = $b->useTube("work")->put(json_encode($value));

maybe you're using a different php client for beanstalk? 

-- chad


On Wednesday, October 31, 2012 at 11:14 AM, Bastien Barre wrote:

> Hi everyone,
> 
> i'm using pheanstalk library to manage my queue but when i use the put 
> command the return value is normally the job id inside the queue but i'ts 
> alway return me 1 is that normal or just an Issue.
> 
> here an example : 
> <?php
> 
> 
> function createNewJob($name, $arg, $id){
>     $bsc = new Beanstalk();
> 
>     $bsc->addserver("192.168.253.46", 11300);
>  
>     $value = array("name" => $name,
>                       "acc" => $id,
>                       "arg" => $arg       
>         );
> 
>     $value = json_encode($value);
> 
>     $bsc->use("work");
>      echo $bsc->put("work", $value);
> }
> 
> ?>
> 
> -----------------------
> The output : 
> 1
> -----------------------
> Maybe i do something wrong ? can someone Help me ?
> 
> Cheers.
> -- 
> You received this message because you are subscribed to the Google Groups 
> "beanstalk-talk" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/beanstalk-talk/-/Bh12wIXZVZkJ.
> To post to this group, send email to [email protected] 
> (mailto:[email protected]).
> To unsubscribe from this group, send email to 
> [email protected] 
> (mailto:[email protected]).
> For more options, visit this group at 
> http://groups.google.com/group/beanstalk-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en.

Reply via email to