isWeb.php
Table of Contents
Functions
- isWeb() : bool
- Checks if the PHP script is running in a Web server context (not CLI).
Functions
isWeb()
Checks if the PHP script is running in a Web server context (not CLI).
isWeb() : bool
Returns true if PHP is executed via HTTP (e.g., Slim, Symfony HTTP, WordPress).
Tags
Return values
bool —true if the script is running in a web context, false otherwise