How to know if php script is called via require_once()?
158918
Check if a file was included or loaded
30906
Invoking a PHP script from a MySQL trigger
110829
The "proper" way to test if a service is running in a script
150889
How to output in CLI during execution of PHP Unit tests?
91220
php script not executed by crontab
85511
How do I dynamically invoke a class method in PHP?
113149
Is there a code obfuscator for PHP?
22996
In Java, is it possible to know whether a class has already been loaded?
150252
How to call shell script from php that requires SUDO?
111099
PHP_SELF vs PATH_INFO vs SCRIPT_NAME vs REQUEST_URI
110514
How do I immediately execute an anonymous function in PHP?
9368
In PHP, how to detect the execution is from CLI mode or through browser ?
101890
Should we ever check for mysqli_connect() errors manually?
48791
How do I examine defined constants in PHP?
133871
How do I implement a callback in PHP?
143750
Simplest way to profile a PHP script
8343
When do I use the PHP constant "PHP_EOL"?