Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17226 программистов и 1834 робота. Сейчас ищут 1668 программистов ...
Net_Ping::setArgs()
Вернуться к: Net_Ping
Net_Ping::setArgs()
Net_Ping::setArgs() – set arguments for a ping command
Synopsis
require_once 'Net/Ping.php';
boolean Net_Ping::setArgs ( array $args )
Set the arguments for a ping command
Parameter
-
array $args - an array of the arguments to set
possible array keys Key name Description NOT supported on "count" Number of ping packages to send "quiet" Level of output verbosity Windows "iface" FreeBSD, Linux, Windows "ttl" "timeout" Time to wait for a ACK of a ping package "size" Size of a ping package FreeBSD, Darwin, Linux, Windows
Return value
boolean - Returns TRUE on success, PEAR_Error on failure.
Throws
Error code | Error message | Reason | Solution |
---|---|---|---|
NULL | PING_INVALID_ARGUMENTS | A not supported argument was given | Check typing of argument (key name) and OS-support of the argument. |
Note
This function can not be called statically.
Вернуться к: Net_Ping