PEAR_ChannelFile::getPort()

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

返り値

returns port number to connect to

例外・エラー

throws no exceptions thrown

注意

この関数は、スタティックにコールする ことはできません。