1.

What is Command-Line Interface(CLI)? Why we use CLI in Codeigniter?

Answer»

Command-Line Interface or CLI is a text-based interface for INTERACTING with computers through a set of commands. We can use CLI in CODEIGNITER for:

  • Running your cron-jobs without wget or CURL usage
  • Make your cron-jobs inaccessible from being loaded in the URL(Uniform Resource Locator) by checking the value returned by is_cli()
  • Make interactive “tasks” that can do various things such as set permissions, run BACKUPS, prune cache folders, etc.
  • It helps to integrate CodeIgniter with applications in other languages. For example, a random C++ script can call a command and run CODE in your models.


Discussion

No Comment Found