more cli stuff

This commit is contained in:
Dan Buch 2011-01-02 09:03:22 -05:00
parent abcdf7e2a8
commit b7d382d470
2 changed files with 10 additions and 1 deletions

9
cli/args Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/php -q
<?php
printf("ARGC = $argc\n\n");
foreach($argv as $i => $value) {
printf("ARGV[$i] = $value\n");
}
?>

View File

@ -1,6 +1,6 @@
#!/usr/bin/php -q
<?php
echo "Hello World via command line!\n";
printf("Hello World via command line!\n");
?>