NETCreator

Break the barriers

Detect CLI (Command Line Interface) using PHP
Detect CLI (Command Line Interface) using PHP

The main focus of CLI SAPI is for developing shell applications with PHP. However, you may want to create some applications which could be run, at the same time, using CLI and another SAPI (eg: web server). To detect CLI, you can use this function: Let’s say we want to create a simple application which... » read more