PHP Classes

File: generate_api

Recommend this page to a friend!
  Classes of nvb  >  PHP Memory Limit Manager  >  generate_api  >  Download  
File: generate_api
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Memory Limit Manager
Set the PHP memory limit and check if is exceeded
Author: By
Last change:
Date: 2 years ago
Size: 754 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/MemoryLimitManager/', '--destination ' . $path . '/document/', '--title "Memory Limit Manager by Bazzline"' ); $command = 'php ' . $pathToApiGen . ' generate ' . implode(' ', $options); passthru($command);