Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What do you mean by php command line interface?


Asked by Taylor Ware on Dec 01, 2021 PHP



PHP Command Line Interface. What is PHP CLI? PHP CLI is a short for PHP Command Line Interface. As the name implies, this is a way of using PHP in the system command line. Or by other words it is a way of running PHP Scripts that aren't on a web server (such as Apache web server or Microsoft IIS).
In this manner,
You can do GUI (graphical user interface) applications for your Windows or Linux box with PHP! All you need is PHP Command Line Interface and GTK in a pack. This will allow to create really portable GUI applications and won't require to learn anything else. Just PHP. GTK is available both on Linux and Windows.
Accordingly, PHP CLI is a short for PHP Command Line Interface. As the name implies, this is a way of using PHP in the system command line.
Keeping this in consideration,
NB: If you're editing your php files on multiple platforms (i.e. Windows and Linux), make sure you double check the files are saved in a Unix format... those 's and 's 'll bite cha! You can also call the script from the command line after chmod'ing the file (ie: chmod 755 file.php).
One may also ask,
What is Command Line Interface (CLI)? CLI is a command line program that accepts text input to execute operating system functions. In the 1960s, using only computer terminals, this was the only way to interact with computers.