You Can Run PHP Scripts Like Regular Command Line Apps on Linux!

Publié le: 06 décembre 2019
sur la chaîne: Category5 Technology TV with Robbie Ferguson
4,567
134

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


Sur cette page du site, vous pouvez voir la vidéo en ligne You Can Run PHP Scripts Like Regular Command Line Apps on Linux! durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Category5 Technology TV with Robbie Ferguson 06 décembre 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 4,567 fois et il a aimé 134 téléspectateurs. Bon visionnage!