Appendix


Predefined Constants

PHPoC provides predefined constants as following below.

Name Description
COUNT_NORMAL Normal Counting for one-dimension array
COUNT_RECURSIVE Recursive Counting for multi-dimension array
EPIPE Broken Pipe,
Returning as connection is broken while sending TCP data
EBUSY Device or Resource Busy
ENOENT No file entry
FALSE False
M_PI Pi (≒ 3.1415926535898)
M_E Euler's Constant (≒ 2.718281828459)
MAX_STRING_LEN Maximum length of a string
O_NODIE avoid to terminate script execution:
file open
PHP_VERSION_ID PHPoC Version
SEEK_CUR File pointer position: current position of file
SEEK_END File pointer position: at the end of file
SEEK_SET File pointer position: at the beginning of file
SSL_CLOSED SSL status: not connected
SSL_CONNECTED SSL status: connected
SSL_LISTEN SSL status: wait for connection
TRUE True
TCP_CLOSED TCP status: not connected
TCP_CONNECTED TCP status: connected
TCP_LISTEN TCP status: wait for connection