Net_NNTP::command() – send a command to a newsserver


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.


  • 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


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.


Using command()

$response $nntp->command("ARTICLE 1004853");
predefined constants (Previous) Connects to a newsserver (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.