proc_close

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Close a process opened by proc_open() and return the exit code of that process int proc_close ( resource $process ) proc_close() is similar to pclose() except that it only works on processes opened by proc_open(). proc_close() waits for the process to terminate, and returns its exit code. If you have open pipes to that process, you should fclose() them prior to calling this function in order

passthru

(PHP 4, PHP 5, PHP 7) Execute an external program and display raw output void passthru ( string $command [, int &$return_var ] ) The passthru() function is similar to the exec() function in that it executes a command. This function should be used in place of exec() or system() when the output from the Unix command is binary data which needs to be passed directly back to the browser. A common use for this is to execute s

exec

(PHP 4, PHP 5, PHP 7) Execute an external program string exec ( string $command [, array &$output [, int &$return_var ]] ) exec() executes the given command. Parameters: command The command that will be executed. output If the output argument is present, then the specified array will be filled with every line of output from the

escapeshellcmd

(PHP 4, PHP 5, PHP 7) Escape shell metacharacters string escapeshellcmd ( string $command ) escapeshellcmd() escapes any characters in a string that might be used to trick a shell command into executing arbitrary commands. This function should be used to make sure that any data coming from user input is escaped before this data is passed to the exec() or system() functions, or to the backtick operator. Following characters

escapeshellarg

(PHP 4 >= 4.0.3, PHP 5, PHP 7) Escape a string to be used as a shell argument string escapeshellarg ( string $arg ) escapeshellarg() adds single quotes around a string and quotes/escapes any existing single quotes allowing you to pass a string directly to a shell function and having it be treated as a single safe argument. This function should be used to escape individual arguments to shell functions coming from user inpu

posix_uname

(PHP 4, PHP 5, PHP 7) Get system name array posix_uname ( void ) Gets information about the system. Posix requires that assumptions must not be made about the format of the values, e.g. the assumption that a release may contain three digits or anything else returned by this function. Returns: Returns a hash of strings with information about the system. The indices of the hash are sysname - ope

posix_ttyname

(PHP 4, PHP 5, PHP 7) Determine terminal device name string posix_ttyname ( mixed $fd ) Returns a string for the absolute path to the current terminal device that is open on the file descriptor fd. Parameters: fd The file descriptor, which is expected to be either a file resource or an integer. An integer will be assumed to be a file descriptor that can be passed directly

posix_times

(PHP 4, PHP 5, PHP 7) Get process times array posix_times ( void ) Gets information about the current CPU usage. Returns: Returns a hash of strings with information about the current process CPU usage. The indices of the hash are: ticks - the number of clock ticks that have elapsed since reboot. utime - user time used by the current process. stime - system time used by the current proce

posix_strerror

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Retrieve the system error message associated with the given errno string posix_strerror ( int $errno ) Returns the POSIX system error message associated with the given errno. You may get the errno parameter by calling posix_get_last_error(). Parameters: errno A POSIX error number, returned by posix_get_last_error(). If set to 0, then the

posix_setuid

(PHP 4, PHP 5, PHP 7) Set the UID of the current process bool posix_setuid ( int $uid ) Set the real user ID of the current process. This is a privileged function that needs appropriate privileges (usually root) on the system to be able to perform this function. Parameters: uid The user id. Returns: Returns TRUE on success or FALSE on failure.