Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getmypid(3) [php man page]

GETMYPID(3)								 1							       GETMYPID(3)

getmypid - Gets PHP's process ID

SYNOPSIS
int getmypid (void ) DESCRIPTION
Gets the current PHP process ID. RETURN VALUES
Returns the current PHP process ID, or FALSE on error. NOTES
Warning Process IDs are not unique, thus they are a weak entropy source. We recommend against relying on pids in security-dependent con- texts. SEE ALSO
getmygid(3), getmyuid(3), get_current_user(3), getmyinode(3), getlastmod(3). PHP Documentation Group GETMYPID(3)

Check Out this Related Man Page

APACHE_CHILD_TERMINATE(3)						 1						 APACHE_CHILD_TERMINATE(3)

apache_child_terminate - Terminate apache process after this request

SYNOPSIS
bool apache_child_terminate (void ) DESCRIPTION
apache_child_terminate(3) will register the Apache process executing the current PHP request for termination once execution of PHP code is completed. It may be used to terminate a process after a script with high memory consumption has been run as memory will usually only be freed internally but not given back to the operating system. RETURN VALUES
Returns TRUE if PHP is running as an Apache 1 module, the Apache version is non-multithreaded, and the child_terminate PHP directive is enabled (disabled by default). If these conditions are not met, FALSE is returned and an error of level E_WARNING is generated. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.4.0 | | | | | | | This function became available under FastCGI. | | | Previously, it was supported only when PHP was | | | installed as an Apache module. | | | | +--------+---------------------------------------------------+ NOTES
Note This function is not implemented on Windows platforms. SEE ALSO
exit(3). PHP Documentation Group APACHE_CHILD_TERMINATE(3)
Man Page