PHP Classes

File: generate_api

Recommend this page to a friend!
  Classes of nvb   PHP Time Limit Manager   generate_api   Download  
File: generate_api
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Time Limit Manager
Check if the PHP execution time limit was reached
Author: By
Last change:
Date: 3 years ago
Size: 750 bytes
 

Contents

Class file image Download
#!/usr/bin/php <?php /** * @author stev leibelt <artodeto@bazzline.net> * @since 2015-02-07 */ if ($argc != 2) { echo 'Usage: ' . basename(__FILE__) . ' <path to apigen>' . PHP_EOL; exit(1); } $pathToApiGen = $argv[1]; if (!is_readable($pathToApiGen)) { echo 'path to apigen "' . $pathToApiGen . ' is not readable' . PHP_EOL; exit(1); } $path = __DIR__; //delete $command = 'rm -fr ' . $path . '/document/*'; passthru($command); //generate $options = array( '--source ' . $path . '/source/Net/Bazzline/Component/TimeLimitManager/', '--destination ' . $path . '/document/', '--title "Time Limit Manager by Bazzline"' ); $command = 'php ' . $pathToApiGen . ' generate ' . implode(' ', $options); passthru($command);