| /PHP_TRUNK/ext/phar/phar/ |
| H A D | phar.php | 30 echo "$argv[0] requires PHP extension $ext.\n"; 52 new PharCommand($argc, $argv);
|
| /PHP_TRUNK/ext/spl/examples/ |
| H A D | dba_array.php | 33 $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 D | dba_dump.php | 32 $db = new DbaReader($argv[1], $argv[2]); 35 $db = new KeyFilter($db, $argv[3]);
|
| H A D | directorytree.php | 29 $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 D | findfile.php | 32 foreach(new FindFile($argv[1], $argv[2]) as $file) echo $file->getPathname()."\n";
|
| H A D | findregex.php | 31 foreach(new RegexFindFile($argv[1], $argv[2]) as $file)
|
| H A D | ini_groups.php | 32 $it = new IniGroups($argv[1]); 34 $it = new KeyFilter($it, $argv[2]);
|
| H A D | phar_from_dir.php | 31 $phar = new Phar($argv[1], 0, 'newphar'); 33 $dir = new RecursiveDirectoryIterator($argv[2]); 37 $dir = new RegexIterator($dir, '/'.$argv[3].'/');
|
| H A D | tree.php | 16 //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 D | fetch.php | 3 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 D | getopt.c | 19 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 D | getopt.h | 8 int ap_getopt(int argc, char* const *argv, const char *optstr);
|
| /PHP_TRUNK/sapi/milter/ |
| H A D | getopt.c | 18 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 D | php_getopt.h | 7 int ap_php_getopt(int argc, char* const *argv, const char *optstr);
|
| /PHP_TRUNK/scripts/dev/generate-phpt/src/setup/ |
| H A D | gtCommandLineOptions.php | 42 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 D | gd2time.c | 13 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 D | gd2topng.c | 11 main (int argc, char **argv) argument 20 in = fopen (argv[1], "rb"); 33 out = fopen (argv[2], "wb");
|
| H A D | gdparttopng.c | 11 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 D | gdtopng.c | 10 main (int argc, char **argv) argument 19 in = fopen (argv[1], "rb"); 32 out = fopen (argv[2], "wb");
|
| H A D | pngtogd2.c | 12 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 D | webpng.c | 20 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 D | strcut.c | 25 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/main/ |
| H A D | getopt.c | 31 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 69 if ((argv[*optind][0] != '-')) { 72 if (!argv[*optind][1]) 82 if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) { 84 int arg_end = strlen(argv[*optind])-1; 87 if (argv[*optin [all...] |
| /PHP_TRUNK/win32/build/ |
| H A D | deplister.c | 47 int main(int argc, char *argv[]) argument 50 argv[1], NULL, argv[2], StatusRoutine);
|
| /PHP_TRUNK/sapi/cli/ |
| H A D | ps_title.h | 30 extern char** save_ps_args(int argc, char** argv); 40 extern void cleanup_ps_args(char **argv);
|