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
Executable
+9
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");
}
?>
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/php -q #!/usr/bin/php -q
<?php <?php
echo "Hello World via command line!\n"; printf("Hello World via command line!\n");
?> ?>