Salient Digital Techno Blog
Ramblings on technology with a dash of social commentary
-
PHP from the command line
Posted on November 3rd, 2009 No commentsI was just reading about how to write PHP scripts specifically for the command line.
points of interest:
- php -r ‘print_r(get_defined_constants());’
-
#!/usr/bin/php
<?php
var_dump($argv);
?> - http://php.net/manual/en/features.commandline.php