PageRenderTime 367ms queryFilters 37ms Sphinxql 175ms GetByIds 149ms meta 0ms repositoryFilters 24ms languageFilters 0ms sourceFilters 2ms

15,647 results for 'php getopt repo:appmode/nagiosplugins-php' (367 ms)

Source

Language

Repository

utils.php https://github.com/appmode/nagiosplugins-php.git | PHP | 491 lines
1<?php
2//----------------------------------------------------------------------------//
59	private $_arrPerformanceData	= Array();
60	public 	$strVersion 			= "(nagiosPluginsPHP 1.0)";
61	public 	$strRevision 			= "1.0.4";
81	 * 											to be parsed for the plugin. See the
82	 * 											getOpt method for more details.			  Default = NULL
83	 * 											
102		// get options
103		$this->arrOptions = $this->getOpt($arrOptions);
104		
375	 * 
376	 * see the php getopt function for more details
377	 *
445		// get options
446		//$arrReturnOptions = getopt($strOptions, array_unique($arrLongOptions)); //PHP 5.3 or better only
447		$arrReturnOptions = getopt($strOptions);
GetoptPlus.php https://bitbucket.org/bestteam/expenses.git | PHP | 430 lines
92    /**
93     * The long options used by Console_Getopt::doGetopt()
94     *
183        // extracts the command arguments, including the command name
184        $args = Console_Getopt::readPHPArgv();
185        $command = array_shift($args);
187        $config['options'] = $getopt->tidyOptions($config['options']);
188        $options = Console_Getopt::doGetopt($version, $args, $getopt->shortOptions, $getopt->longOptions);
189        // a syntax error, prints out the error message
303     *                              keys if true, or leave them as returned by
304     *                              Console_Getopt::doGetopt(), default is true
305     * @return array   the tidy options arguments
333            } else {
334                // leaves the arguments as per the Console_Getopt::doGetopt() format
335                $tidied[] = array($name, $value);
GetoptPlus.php https://github.com/bibibaonam/sublimetext-codeformatter.git | PHP | 430 lines
92    /**
93     * The long options used by Console_Getopt::doGetopt()
94     *
183        // extracts the command arguments, including the command name
184        $args = Console_Getopt::readPHPArgv();
185        $command = array_shift($args);
187        $config['options'] = $getopt->tidyOptions($config['options']);
188        $options = Console_Getopt::doGetopt($version, $args, $getopt->shortOptions, $getopt->longOptions);
189        // a syntax error, prints out the error message
303     *                              keys if true, or leave them as returned by
304     *                              Console_Getopt::doGetopt(), default is true
305     * @return array   the tidy options arguments
333            } else {
334                // leaves the arguments as per the Console_Getopt::doGetopt() format
335                $tidied[] = array($name, $value);
mkdist.php https://github.com/29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/php-src.git | PHP | 558 lines
15
16$dist_dir = $build_dir . "/php-" . phpversion();
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
237	"README.REDIST.BINS" => "readme-redist-bins.txt",
238	"php.ini-development" => "php.ini-development",
239	"php.ini-production" => "php.ini-production",
471}
472copy('run-tests.php', $test_dir . '/run-test.php');
473
505
506	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
507	 * broken out of the tarballs */
509	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
510	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
511}
mkdist.php https://github.com/90youth/php-src.git | PHP | 547 lines
15
16$dist_dir = $build_dir . "/php-" . phpversion();
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
237	"README.REDIST.BINS" => "readme-redist-bins.txt",
238	"php.ini-development" => "php.ini-development",
239	"php.ini-production" => "php.ini-production",
460}
461copy('run-tests.php', $test_dir . '/run-test.php');
462
494
495	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
496	 * broken out of the tarballs */
498	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
499	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
500}
mkdist.php https://github.com/9618211/php-src.git | PHP | 547 lines
15
16$dist_dir = $build_dir . "/php-" . phpversion();
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
237	"README.REDIST.BINS" => "readme-redist-bins.txt",
238	"php.ini-development" => "php.ini-development",
239	"php.ini-production" => "php.ini-production",
460}
461copy('run-tests.php', $test_dir . '/run-test.php');
462
494
495	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
496	 * broken out of the tarballs */
498	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
499	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
500}
mkdist.php https://github.com/abo-yes/php-src.git | PHP | 547 lines
15
16$dist_dir = $build_dir . "/php-" . phpversion();
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
237	"README.REDIST.BINS" => "readme-redist-bins.txt",
238	"php.ini-development" => "php.ini-development",
239	"php.ini-production" => "php.ini-production",
460}
461copy('run-tests.php', $test_dir . '/run-test.php');
462
494
495	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
496	 * broken out of the tarballs */
498	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
499	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
500}
mkdist.php https://github.com/airlifei/php-src.git | PHP | 547 lines
15
16$dist_dir = $build_dir . "/php-" . phpversion();
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
237	"README.REDIST.BINS" => "readme-redist-bins.txt",
238	"php.ini-development" => "php.ini-development",
239	"php.ini-production" => "php.ini-production",
460}
461copy('run-tests.php', $test_dir . '/run-test.php');
462
494
495	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
496	 * broken out of the tarballs */
498	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
499	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
500}
mkdist.php https://github.com/andriuspetrauskis/php-src.git | PHP | 546 lines
15
16$dist_dir = $build_dir . "/php-" . phpversion();
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
237	"README.REDIST.BINS" => "readme-redist-bins.txt",
238	"php.ini-development" => "php.ini-development",
239	"php.ini-production" => "php.ini-production",
459}
460copy('run-tests.php', $test_dir . '/run-test.php');
461
493
494	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
495	 * broken out of the tarballs */
497	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
498	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
499}
mkdist.php https://github.com/AndroidMarv/php-src.git | PHP | 547 lines
15
16$dist_dir = $build_dir . "/php-" . phpversion();
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
237	"README.REDIST.BINS" => "readme-redist-bins.txt",
238	"php.ini-development" => "php.ini-development",
239	"php.ini-production" => "php.ini-production",
460}
461copy('run-tests.php', $test_dir . '/run-test.php');
462
494
495	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
496	 * broken out of the tarballs */
498	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
499	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
500}
mkdist.php https://github.com/andywuzh/php-src.git | PHP | 547 lines
15
16$dist_dir = $build_dir . "/php-" . phpversion();
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
237	"README.REDIST.BINS" => "readme-redist-bins.txt",
238	"php.ini-development" => "php.ini-development",
239	"php.ini-production" => "php.ini-production",
460}
461copy('run-tests.php', $test_dir . '/run-test.php');
462
494
495	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
496	 * broken out of the tarballs */
498	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
499	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
500}
mkdist.php git://github.com/infusion/PHP.git | PHP | 547 lines
15
16$dist_dir = $build_dir . "/php-" . phpversion();
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
238	"php.ini-development" => "php.ini-development",
239	"php.ini-production" => "php.ini-production",
240	"win32/install.txt" => "install.txt",
250$general_files = array(
251	"php.gif"			=>	"php.gif",
252);
494
495	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
496	 * broken out of the tarballs */
498	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
499	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
500}
mkdist.php git://github.com/php/php-src.git | PHP | 589 lines
16
17$dist_dir = $build_dir . "/php-" . $php_version;
18$test_dir = $build_dir . "/php-test-pack-" . $php_version;
502}
503copy('run-tests.php', $test_dir . '/run-tests.php');
504
515    echo "Downloading go-pear\n";
516    copy("https://pear.php.net/go-pear.phar", "$dist_dir/PEAR/go-pear.php");
517
536
537    /* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
538     * broken out of the tarballs */
540    extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
541    extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
542}
mkdist.php git://github.com/vpj/PHP-Extension-API.git | PHP | 493 lines
15$dist_dir = $build_dir . "/php-" . phpversion();
16$test_dir = $build_dir . "/php-test-pack-" . phpversion();
17$pecl_dir = $build_dir . "/pecl-" . phpversion();
234	"win32/install.txt" => 	"install.txt",
235	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
236	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
419	echo "Downloading go-pear\n";
420	copy("http://pear.php.net/go-pear", "$dist_dir/PEAR/go-pear.php");
421
440
441	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
442	 * broken out of the tarballs */
444	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
445	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
446}
mkdist.php https://github.com/do-aki/petipeti.git | PHP | 549 lines
15
16$dist_dir = $build_dir . "/php-" . phpversion();
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
240	"win32/install.txt" => "install.txt",
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
461}
462copy('run-tests.php', $test_dir . '/run-test.php');
463
495
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
497	 * broken out of the tarballs */
499	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
500	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
501}
mkdist.php http://php52-backports.googlecode.com/svn/trunk/ | PHP | 421 lines
197/* the core dll */
198copy("$build_dir/php.exe", "$dist_dir/php.exe");
199copy("$build_dir/$phpdll", "$dist_dir/$phpdll");
225	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
226	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
227);
234$general_files = array(
235	"php.gif"			=>	"php.gif",
236);
367
368	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
369	 * broken out of the tarballs */
371	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
372	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
373}
make-pear-bundle.php http://opensource.apple.com/release/mac-os-x-1074/ | PHP | 139 lines
23#!/usr/bin/php
24&lt;?php # $Id: make-pear-bundle.php,v 1.2.2.2 2006/08/18 12:44:27 pajoye Exp $
25/* piece together a windows pear distro */
112/* import the package list -- sets $packages variable */
113include $cvs_dir . &quot;/pear/go-pear-list.php&quot;;
114
122		continue;
123	$url = &quot;<a href="http://pear.php.net/get/">http://pear.php.net/get/</a>$filename&quot;;
124	echo &quot;Downloading $name from $url\n&quot;;
130
131/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
132 * broken out of the tarballs */
134extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', &quot;$dist_dir/PEAR/go-pear-bundle&quot;);
135extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', &quot;$dist_dir/PEAR/go-pear-bundle&quot;);
136?&gt;
mkdist.php http://opensource.apple.com/release/mac-os-x-1074/ | PHP | 445 lines
36
37$dist_dir = $build_dir . &quot;/php-&quot; . phpversion();
38$pecl_dir = $build_dir . &quot;/pecl-&quot; . phpversion();
244	&quot;php.ini-dist&quot; =&gt; 	&quot;php.ini-dist&quot;,
245	&quot;php.ini-recommended&quot; =&gt; &quot;php.ini-recommended&quot;,
246	&quot;win32/install.txt&quot; =&gt; 	&quot;install.txt&quot;,
381			continue;
382		$url = &quot;<a href="http://pear.php.net/get/">http://pear.php.net/get/</a>$filename&quot;;
383		echo &quot;Downloading $name from $url\n&quot;;
389
390	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
391	 * broken out of the tarballs */
393	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', &quot;$dist_dir/PEAR/go-pear-bundle&quot;);
394	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', &quot;$dist_dir/PEAR/go-pear-bundle&quot;);
395}
mkdist.php https://bitbucket.org/wmark/php-fpm-0.5.git | PHP | 420 lines
197/* the core dll */
198copy("$build_dir/php.exe", "$dist_dir/php.exe");
199copy("$build_dir/$phpdll", "$dist_dir/$phpdll");
225	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
226	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
227);
234$general_files = array(
235	"php.gif"			=>	"php.gif",
236);
367
368	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
369	 * broken out of the tarballs */
371	extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle");
372	extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle");
373}
Command.php https://bitbucket.org/harikt/aura.framework.git | PHP | 96 lines
31     */
32    protected $php = 'php';
33
54     *
55     * @param string $php The path to PHP.
56     *
59     */
60    public function setPhp($php)
61    {
61    {
62        $this->php = $php;
63    }
85        $router = __DIR__ . DIRECTORY_SEPARATOR . 'router.php';
86        $cmd    = "{$this->php} -S 0.0.0.0:{$this->getopt->port} {$router}";
87        $pipe   = popen($cmd, 'r');
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21