hobbyist wrote:...where can I learn the commands for the shell?
Use the
Shell button in your XAMPP Control Panel then at the prompt
# type:
php -hwill give a list of commands with some comments.
- Code: Select all
Usage: php [options] [-f] <file> [--] [args...]
php [options] -r <code> [--] [args...]
php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
php [options] -- [args...]
php [options] -a
So to parse your file, the
-f is optional:
php -f htdocs\test.phpor
php htdocs\test.phpMore examples:
php -f htdocs\xampp\phpinfo.php1 page at a time:
php -f htdocs\xampp\phpinfo.php |moreUse the
shift plus
\ keys to get the pipe
|The php web site may have much more info:
http://us3.php.net/results.php?q=command+line&l=en&p=allFor a list of Shell (DOS) commands at the prompt
# type:
helpFor help with a specific command type help followed by the command, for example:
help MOREIf this topic needs to be kept alive, then if those with more knowledge on this subject would be so kind as to add more detail so that it may help others searching the forum for this subject.
Thanks.