POP3::__construct
PHP5 constructor.
Method of the class: POP3{}
No Hooks.
Returns
null. Nothing (null).
Usage
$POP3 = new POP3(); $POP3->__construct ( $server, $timeout );
- $server
- .
Default: '' - $timeout
- .
Default: ''
POP3::__construct() POP3:: construct code WP 6.8.3
function __construct ( $server = '', $timeout = '' ) {
settype($this->BUFFER,"integer");
if( !empty($server) ) {
// Do not allow programs to alter MAILSERVER
// if it is already specified. They can get around
// this if they -really- want to, so don't count on it.
if(empty($this->MAILSERVER))
$this->MAILSERVER = $server;
}
if(!empty($timeout)) {
settype($timeout,"integer");
$this->TIMEOUT = $timeout;
// Extend POP3 request timeout to the specified TIMEOUT property.
if(function_exists("set_time_limit")){
set_time_limit($timeout);
}
}
return true;
}