News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Maintaining your Server with Command Line PHP
April 17, 2012 @ 09:37:16

Stephen Thorpe has a new article posted on the PHPMaster.com site today about using command line PHP to handle some of the automation on your server.

n this article we'll look at the advantages of using PHP CLI. I'll show you how to test PHP's Command Line Interface / Interpreter (CLI) on your server, and then we'll look at some of the options available for PHP CLI including the interactive shell and how to create executable scripts. Finally, I'll give you a couple of examples of scripts to use to maintain your server written in PHP.

He introduces the command-line executable for PHP and shows how to use it to create some simple scripts (including ones that take in command-line arguments). He shows how to make a simple script to monitor disk usage (using the unix command "df") and a backup script that copies files/folders over to another device.

0 comments voice your opinion now!
commandline tutorial introduction


blog comments powered by Disqus

Similar Posts

Joshua Thijssen's Blog: Using vagrant and puppet to setup your symfony2 environment

Gonzalo Ayuso: Enqueue Symfony’s process components with PHP and ZeroMQ

Zend Developer Zone: Object-relational mapping with Doctrine, Flash Builder, and PHP

Jeroen Keppens' Blog: Create a modular application with Zend Framework

NETTUTS.com: Diving into the Twitter API


Community Events





Don't see your event here?
Let us know!


unittest testing interview developer series introduction framework podcast laravel configure community code refactor install experience threedevsandamaybe opinion release list language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework