Skip to content

version_checker.php

turanct edited this page Jul 9, 2012 · 1 revision

version_checker.php

Goal

This script is the main script of our program. It's actually a lot of glue code to compare the output of the .sh files with the version numbers obtained through get_version.php.

Actions

  • Display up-to-date packages
  • Display outdated packages
  • Send e-mails (todo)

Usage

CLI / Bash scripting

php version_checker.php
php version_checker.php wordpress drupal

The script accepts any number of arguments, the names of the open source packages to check for, in one word.

HTTP GET

http://host/get_version.php
http://host/get_version.php?s=wordpress+drupal

The script accepts the get parameter s, the names of the open source packages to check for, in one word, separated by +.

Returns

  • The script returns any ouput specified by the active Actions.
Clone this wiki locally