There are three main fields where PHP scripts are used.
- Server-side scripting. You can access the PHP program output with a web browser, viewing the PHP page through the server.
- Command line scripting. You can make a PHP script to run it without any server or browser. You only need the PHP parser to use it this way. This type of usage is ideal for scripts regularly executed using cron (Linux) or Task Scheduler (on Windows). These scripts can also be used for simple text processing tasks.
- Writing client-side GUI : We can also write GUI application by using PHP.