Searched refs:argv (Results 1 - 25 of 118) sorted by relevance

12345

/PHP_TRUNK/ext/phar/phar/
H A Dphar.php30 echo "$argv[0] requires PHP extension $ext.\n";
52 new PharCommand($argc, $argv);
/PHP_TRUNK/ext/spl/examples/
H A Ddba_array.php33 $dba = new DbaArray($argv[1], $argv[2]);
36 $dba[$argv[3]] = $argv[4];
38 var_dump(array('Index' => $argv[3], 'Value' => $dba[$argv[3]]));
H A Ddba_dump.php32 $db = new DbaReader($argv[1], $argv[2]);
35 $db = new KeyFilter($db, $argv[3]);
H A Ddirectorytree.php29 $length = $argc > 3 ? $argv[3] : -1;
31 echo $argv[1]."\n";
32 foreach(new LimitIterator(new DirectoryTreeIterator($argv[1]), @$argv[2], $length) as $key=>$file) {
33 //foreach(new DirectoryTreeIterator($argv[1]) as $file) {
H A Dfindfile.php32 foreach(new FindFile($argv[1], $argv[2]) as $file) echo $file->getPathname()."\n";
H A Dfindregex.php31 foreach(new RegexFindFile($argv[1], $argv[2]) as $file)
H A Dini_groups.php32 $it = new IniGroups($argv[1]);
34 $it = new KeyFilter($it, $argv[2]);
H A Dphar_from_dir.php31 $phar = new Phar($argv[1], 0, 'newphar');
33 $dir = new RecursiveDirectoryIterator($argv[2]);
37 $dir = new RegexIterator($dir, '/'.$argv[3].'/');
H A Dtree.php16 //foreach(new RecursiveIteratorIterator(new ParentIterator(new RecursiveDirectoryIterator($argv[1])), 1) as $file) {
34 echo $argv[1]."\n";
35 foreach(new DirectoryGraphIterator($argv[1]) as $file)
/PHP_TRUNK/pear/
H A Dfetch.php3 function usage($argv) {
5 printf("\tphp %s <http://example.com/file> <localfile>\n", $argv[0]);
51 isset($argv[1], $argv[2]) or usage($argv);
66 $fp = fopen($argv[1], "r", false, $ctx);
67 if (is_resource($fp) && file_put_contents($argv[2], $fp)) {
/PHP_TRUNK/sapi/isapi/stresstest/
H A Dgetopt.c19 ap_optiserr(int argc, char * const *argv, int oint, const char *optstr, argument
31 fprintf(stderr, "option not found %c\n", argv[oint][optchr]);
34 fprintf(stderr, "no argument for option %c\n", argv[oint][optchr]);
41 ap_optopt = argv[oint][optchr];
45 int ap_getopt(int argc, char* const *argv, const char *optstr) argument
54 if (!dash && (argv[ap_optind][0] != '-'))
56 if (!dash && (argv[ap_optind][0] == '-') && !argv[ap_optind][1])
64 if ((argv[ap_optind][0] == '-') && (argv[ap_optin
134 main(int argc, char **argv) argument
[all...]
H A Dgetopt.h8 int ap_getopt(int argc, char* const *argv, const char *optstr);
/PHP_TRUNK/sapi/milter/
H A Dgetopt.c18 ap_php_optiserr(int argc, char * const *argv, int oint, const char *optstr, argument
30 fprintf(stderr, "option not found %c\n", argv[oint][optchr]);
33 fprintf(stderr, "no argument for option %c\n", argv[oint][optchr]);
43 int ap_php_getopt(int argc, char* const *argv, const char *optstr) argument
52 if (!dash && (argv[ap_php_optind][0] != '-'))
54 if (!dash && (argv[ap_php_optind][0] == '-') && !argv[ap_php_optind][1])
62 if ((argv[ap_php_optind][0] == '-') && (argv[ap_php_optind][1] == '-'))
70 assert((argv[ap_php_optin
132 main(int argc, char **argv) argument
[all...]
H A Dphp_getopt.h7 int ap_php_getopt(int argc, char* const *argv, const char *optstr);
/PHP_TRUNK/scripts/dev/generate-phpt/src/setup/
H A DgtCommandLineOptions.php42 public function parse($argv)
44 if(count($argv) < 2) {
48 for ($i=1; $i<count($argv); $i++) {
50 if ($this->isShortOption($argv[$i])) {
51 $option = substr($argv[$i], 1);
53 throw new gtUnknownOptionException('Unrecognised command line option ' . $argv[$i]);
58 throw new gtUnknownOptionException('Unknown option ' . $argv[$i]);
66 if (!$this->isValidOptionArg($argv, $i + 1))
68 throw new gtMissingArgumentException('Missing argument for command line option ' . $argv[$i]);
72 $this->options[$option] = $argv[
[all...]
/PHP_TRUNK/ext/gd/libgd/
H A Dgd2time.c13 main (int argc, char **argv) argument
28 c = atoi (argv[2]);
29 x = atoi (argv[3]);
30 y = atoi (argv[4]);
31 w = atoi (argv[5]);
32 h = atoi (argv[6]);
39 in = fopen (argv[1], "rb");
H A Dgd2topng.c11 main (int argc, char **argv) argument
20 in = fopen (argv[1], "rb");
33 out = fopen (argv[2], "wb");
H A Dgdparttopng.c11 main (int argc, char **argv) argument
22 in = fopen (argv[1], "rb");
29 x = atoi (argv[3]);
30 y = atoi (argv[4]);
31 w = atoi (argv[5]);
32 h = atoi (argv[6]);
43 out = fopen (argv[2], "wb");
H A Dgdtopng.c10 main (int argc, char **argv) argument
19 in = fopen (argv[1], "rb");
32 out = fopen (argv[2], "wb");
H A Dpngtogd2.c12 main (int argc, char **argv) argument
25 in = fopen (argv[1], "rb");
38 out = fopen (argv[2], "wb");
45 cs = atoi (argv[3]);
46 fmt = atoi (argv[4]);
H A Dwebpng.c20 main (int argc, char **argv) argument
38 if (argc < 2 || !strcmp (argv[1], "--help"))
45 if (strcmp ("-", argv[argc - 1]) == 0)
52 in = fopen (argv[argc - 1], "rb");
57 "Error: can't open file %s.\n", argv[argc - 1]);
67 "Error: %s is not a valid PNG file.\n", argv[argc - 1]);
74 if (!strcmp (argv[i], "--help"))
80 else if (!strcmp (argv[i], "-i"))
89 if (!strcmp (argv[i + 1], "y"))
94 else if (!strcmp (argv[
[all...]
/PHP_TRUNK/ext/mbstring/libmbfl/tests/
H A Dstrcut.c25 int main(int argc, char **argv) argument
36 fprintf(stderr, "Usage: %s lang encoding offset length\n", argv[0]);
40 if ((no_language = mbfl_name2no_language(argv[1])) ==
42 printf("Unsupported NLS: %s\n", argv[1]);
46 if ((no_encoding = mbfl_name2no_encoding(argv[2])) ==
48 printf("Unsupported encoding: %s\n", argv[2]);
53 offset = strtol(argv[3], NULL, 10);
55 printf("Invalid offset: %s\n", argv[3]);
59 length = strtol(argv[4], NULL, 10);
61 printf("Invalid length: %s\n", argv[
[all...]
/PHP_TRUNK/sapi/cli/
H A Dps_title.h30 extern char** save_ps_args(int argc, char** argv);
40 extern void cleanup_ps_args(char **argv);
/PHP_TRUNK/win32/build/
H A Ddeplister.c47 int main(int argc, char *argv[]) argument
50 argv[1], NULL, argv[2], StatusRoutine);
/PHP_TRUNK/main/
H A Dgetopt.c31 static int php_opt_error(int argc, char * const *argv, int oint, int optchr, int err, int show_err) /* {{{ */ argument
42 fprintf(stderr, "option not found %c\n", argv[oint][optchr]);
45 fprintf(stderr, "no argument for option %c\n", argv[oint][optchr]);
58 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start) /* {{{ */ argument
77 if ((argv[*optind][0] != '-')) {
80 if (!argv[*optind][1])
90 if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) {
92 int arg_end = (int)strlen(argv[*optind])-1;
95 if (argv[*optin
[all...]

Completed in 7 milliseconds

12345