Post a Comment
I don't want to be overly harsh in my criticism, but this is fairly basic. The whole article could be compressed to
You can call commands line programs and out put them to a web site with php See http://us2.php.net/manual/en/function.system.php for details )I know someone at ibm decided it was worthy of publishing on developer works, so I can hardly criticize Osnews for linking.
Its true some people might not realize it, or even think about it as a possibility. Maybe it would be a good idea to categorize articles like this by language or development type ( Php, web development, shell scripting) that would make finding it easier. OSNews could be more than just news about OS es. It could be news about OSes, how to build them, the applications that run on them, and take over the world. The one stop shop for world domination.
Our CMS has a CLI based interface that authenticates users based on their unix account (the web app stores an optional unix account name in the user record) so you can execute commands with the same permissions you could via the web interface.
Comes in very handy, especially for cron integration.
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.




