PEAR_ChannelFile::setPort() – Set the socket number (port) that is used to connect to this channel


require_once '/ChannelFile.php';

void PEAR_ChannelFile::setPort ( integer $port , string|false $mirror = false )


As web services connect to channels through web servers, this can be used to set the port that should be used to connect. Default is 80 for regular webservers, and 443 for SSL secure servers.


integer $port

port number

string|FALSE $mirror

name of the mirror server, or FALSE for the primary server


throws no exceptions thrown


This function can not be called statically.

Set the file path for xmlrpc or soap (Previous) set the Channel server (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.