p

php

anthony
Last active 1 month ago php

Taken from https://gist.github.com/shakahl/9dab7d1e49c5d8d6a57a4633a702d23c

0 0 1

Real-time PHP-FPM Status

This gist will explain you how to enable an undocumented feature of PHP-FPM which will give a real-time performance stats.

Everybody knows the famous phpinfo() and the page it generates, right? Then the real-time PHP-FPM status page design is very similar.

image

Some informations from the top are not displayed to avoid security issues.

Enable PHP-FPM Status

anthony
0 0 1
1 <?php
2
3 /**
4 * Класс для работы с Asterisk по протоколу AMI через сокет.
5 * Реализовано: подключение, авторизация, отправка команд, отправка СМС, отключение.
6 * Успешно работало на проде в связке с Yeastar TG400.
7 *
8 * Class to work with Asterisk gateway throuth AMI protocol via socket.
9 * Features: connection, authorization, send commands, send SMS, disconnect.
10 * Successfully used in production with Yeastar TG400.