You appear to be a bot. Output may be restricted
Description
Run the script specified having pre-loaded wp-batch codeBefore loading the script we shift the args so that it thinks it's been invoked directly We will assume that a partial path to the routine to be run ($server) has been specified
Usage
oik_batch_run();
Parameters
Returns
voidSource
File name: oik-batch/libs/oik-cli.phpLines:
1 to 12 of 12
function oik_batch_run() { if ( $_SERVER['argc'] >=2 ) { $script = $_SERVER['argv'][1]; //print_r( $_SERVER['argv'] ); array_shift( $_SERVER['argv'] ); echo "Shifting argv" . PHP_EOL; //print_r( $_SERVER['argv'] ); $_SERVER['argc']--; //print_r( $_SERVER['argc'] ); oik_batch_run_script( $script ); } }View on GitHub