Войти
Введите цифры и буквы
Валерий
/* Retry while there is no connection */ while($index < count($hosts) && $connection == false) { $hostinfo = array(); if(eregi('^(.+):([0-9]+)$', $hosts[$index], $hostinfo)) { $host = $hostinfo[1]; $port = $hostinfo[2]; } else { $host = $hosts[$index]; $port = $this->Port; } $tls = ($this->SMTPSecure == 'tls'); $ssl = ($this->SMTPSecure == 'ssl'); if($this->smtp->Connect(($ssl ? 'ssl://':'').$host, $port, $this->Timeout)) { $hello = ($this->Helo != '' ? $this->Hello : $this->ServerHostname()); $this->smtp->Hello($hello); if($tls) { if(!$this->smtp->StartTLS()) { $this->SetError($this->Lang("tls")); $this->smtp->Reset(); $connection = false; } //We must resend HELLO after tls negociation $this->smtp->Hello($hello); } $connection = true; if($this->SMTPAuth) { if(!$this->smtp->Authenticate($this->Username, $this->Password)) { $this->SetError($this->Lang('authenticate')); $this->smtp->Reset(); $connection = false; } } } $index++; }
if(preg_match
if(eregi('^(.+):([0-9]+)$', $hosts[$index], $hostinfo)) {
if(epreg_match("^(.+):([0-9]+)$", $hosts[$index], $hostinfo)) {
ОС: Debian 5
по запросу: cat /proc/sys/kernel/shmmax
выдает: 33554432
может кто сталкивался уже с этим и подскажет как правильно заменить старую функцию на новую в этом коде, чтобы php 5.3 не ругался?
eregi на preg_match…
и …
eregi yf preg_match и ' на " чтобы получилось следующее:
?