Net_NNTP::post()

Net_NNTP::post() -- post a message

Synopsis

require_once 'Net/NNTP.php';

string Net_NNTP::post (string $subject, string $newsgroup, string $from, string $body [, string $additional])

Описание

Post a message to a news server

Параметр

Возвращаемое значение

string - Server response

Throws

Таблица 49-1. Возможные значения PEAR_Error

Error codeError messageReasonSolution
NULL "Not connected" You forgot the set up a connection to a news server or the connection was already again closed. Open a connection before using post(). Check the connection status before using post().

Заметка

Эта функция не должна вызываться статически.

Внимание

post() doesn't care about character encoding of subject and body. Make sure to set correct headers, if you are using non ASCII-127 characters.

Пример


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ