more cli stuff

cat-town
Dan Buch 14 years ago
parent abcdf7e2a8
commit b7d382d470

@ -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,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");
?> ?>

Loading…
Cancel
Save