0.00
Рейтинг
0.00
Сила

Валерий

  • avatar posht
  • 0
Спасибо за ответ, помогло.
  • avatar posht
  • 0
забыл указать ОС.
ОС: Debian 5

по запросу: cat /proc/sys/kernel/shmmax
выдает: 33554432
  • avatar posht
  • 0
в SVN class.phpmailer.php лежит с той же устаревшей функцией eregi =(
может кто сталкивался уже с этим и подскажет как правильно заменить старую функцию на новую в этом коде, чтобы php 5.3 не ругался?
/* 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++;
    }
  • avatar posht
  • 0
опечатался немного:
eregi на preg_match…
и
if(preg_match
  • avatar posht
  • 0
если я правильно понял, то надо заменить в строке
if(eregi('^(.+):([0-9]+)$', $hosts[$index], $hostinfo)) {

eregi yf preg_match и ' на " чтобы получилось следующее:
if(epreg_match("^(.+):([0-9]+)$", $hosts[$index], $hostinfo)) {

?
  • avatar posht
  • 0
На странице плагина ошибка 404. Где-то еще можно скачать архив плагина версии 2.1?
  • avatar posht
  • 0
Поправьте в «Редактируем конфиг виртуалхоста апача» 12 строчку (у вас стоит символ "〉" а не ">")
  • avatar posht
  • 0
Спасибо за мануал. Очень помог при развертывании всего с нуля.