codeigniter - php fsockopen() fail issue -


i'm trying use xml rpc in remote server.

using codeigniter xml-rpc class.

the xml rpc server didn't send data. tracked library

and reached here

- parameters   this->server : 10.222.223.53 this->port : 80 this->errno :  this->errstr :  this->timeout : 5 

these parameters , in here,

$fp = @fsockopen($this->server, $this->port,$this->errno, $this->errstring,   $this->timeout); 

it returns false, means connection fail.

what should reason of this?

i checked 80 port open with

this command

netstat -lntp

tcp 0 0 :::80 :::* listen 6712/httpd

as discussed in comments problem not in code in lack of connectivity. firewall in particular case.

to more debug issue there 2 approaches:

  • remove @ suppressing warning/error output fsockopen
  • inspect values of $this->errno , $this->errstr after call failed

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -