# New Function `fpm_get_status()` in PHP-FPM

> Section in “New and Extended Functionality › I/O and Filesystem” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/new-and-extended-functionality/io-and-filesystem/new-function-fpm_get_status-in-php-fpm/>

When running PHP using FPM, the FastCGI process manager, a new function is available since PHP 7.3, namely `fpm_get_status()`. Note that this function is not available when running PHP at the command line:

    PHP Fatal error:  Uncaught Error: Call to undefined function fpm_get_status() in ...

When run inside FPM, the function will return the FPM status information that also makes up the FPM status page, allowing for building advanced status pages.

---

Previous: [Username and Password in PDO DSN](https://php7explained.com/new-and-extended-functionality/io-and-filesystem/username-and-password-in-pdo-dsn/index.html.md) | Next: [getallheaders() Available in PHP-FPM](https://php7explained.com/new-and-extended-functionality/io-and-filesystem/getallheaders-available-in-php-fpm/index.html.md)
