#!/usr/bin/php updateDomain($argv[1], $argv[2], $argv[3], $argv[4]); exit(); } if ( ($argv[1]=="enable" || $argv[1]=="disable") ) { if (count($argv)<4) { echo "FATAL: enable/disable need 3 parameters: type domain value\n"; print_r($argv); exit(); } $ssl->updateDomain($argv[1], $argv[2], $argv[3] ); exit(); } echo "FATAL: action unknown, must be launched from functions_hosting.sh !\n"; print_r($argv); exit();