Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетил 17951 программист и 1638 роботов. Сейчас ищут 1692 программиста ...
Net_NNTP::command()
Вернуться к: Net_NNTP
Net_NNTP::command()
Net_NNTP::command() – send a command to a newsserver
Synopsis
require_once 'Net/NNTP.php';
string Net_NNTP::command ( string $cmd , boolean $auth )
Command() sends a string command to a newsserver. So you can send customized and/ or non-standard commands to the newsserver.
Parameter
-
string $cmd - the command to send
-
boolean $auth - if TRUE, an auth request is issued before the command
Return value
string - the unprocessed server response
Note
This function can not be called statically.
Command() does no checks on the given command and/ or proccesses the server response. So you should know what are you doing.
Example
Using command()
<?php
...
$response = $nntp->command("ARTICLE 1004853");
?>
Вернуться к: Net_NNTP