PEAR_ChannelFile::getPort() – retrieve the socket port used to connect to the server


require_once '/ChannelFile.php';

int|80 PEAR_ChannelFile::getPort ( mixed $mirror = false )


web services are served through http servers, and so most servers use port 80. This function can be used to determine if a non-standard port is in use at a channel.


mixed $mirror

Mirror name or FALSE for primary server

Return value

returns port number to connect to


throws no exceptions thrown


This function can not be called statically.

getPath (Previous) Retrieve 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.