Support Us on Patreon

Become a Patron for as little as $5 to gain access to exclusive video features, behind the scenes and Patron-only content.

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

  • Episode 635
  • December 4, 2019

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

Discussion

Technology TV is
OFF THE AIR
Please support our Kickstarter

Being Watched

Twitter Posts

Login to Category5

Error message here!

Hide Error message here!

Forgot your password?

Register on Category5

Error message here!

Error message here!

Hide Error message here!

Lost your password? Please enter your email address. You will receive a link to create a new password.

Error message here!

Back to log-in

Close