Linked by Thom Holwerda on Tue 19th May 2009 21:03 UTC
General Development Learn how to better integrate scripts with command-line tools. Examine using shell_exec(), exec(), passthru(), and system(); safely passing information to the command line; and safely retrieving information from it. See how to integrate closely with underlying shell commands and folding any return values into your interfaces and processes.
Permalink for comment 364673
To read all comments associated with this story, please click here.
Hook it into your CMS
by destraht on Thu 21st May 2009 00:24 UTC
Member since:

Lets say that you are using Mediawiki, Wordpress or Drupal, what you can do is hack a few lines into the index.php file that check for some command line arguments. Then you can allow CLI maintenance scripts to use the same DB information and connection know-how to get at your data. I think that it allows for tighter integration and reduces code.

Reply Score: 1