I am trying to connect to my pheanstalk in my application with the code below
public function fsockopen($hostname, $port = -1, &$errno = null, &$errstr = null, $timeout = null)
{
// Warnings (e.g. connection refused) suppressed;
// return value, $errno and $errstr should be checked instead.
return @fsockopen($hostname, $port, $errno, $errstr, $timeout);
}
But i get the error below in my log file
Severity: Warning --> fsockopen(): unable to connect to 212.71.235.57:11300 (Connection refused) /home/path/to/my/application/libraries/pheanstalk/classes/Pheanstalk/Socket/StreamFunctions.php 71
I tried to telnet 212.71.135.20 11300
and it works fine by repsonding
Connected to domain.com Escape character is '^]'.
Is there anything i have to try to do again to make this work please ?
PS: I tried to use socket_connect & socket_create
but none still works.