Whether you want to interact with a database from the Linux terminal, or create a cronjob that automatically caches content to speed up your web site, it's exciting to realize that PHP scripts can be written and run within the Linux command line interface just like a bash script! All you need is the php metapackage (eg., apt install php) and adding a single line to your script header: #!/usr/bin/env php
This video is provided free of charge.
If you enjoy what we do, please consider becoming a Patron so we can continue offering more great content. Support This Free Content