Google doesn't know. Do you?
Please tell me, what the "-a" option for PHP-CLI means, what it does and what it can do for me? (Or maybe "what I can do for it"?)
If you liked this blog post or learned something, please consider using flattr to contribute back: .
Fields with bold names are mandatory.
RTFH
php -a
Link to commentInteractive mode enabled
<?php echo "RTFH"; exit();?>
RTFH
# php -a
Link to commentInteractive mode enabled
<?php echo "RTFH"; exit();?>
2nd tip of the day:
www.php.net/htmlentities ;)
Toby
Some guys realy have humor...
Link to commentEspecially because "Interactive Mode" is so meaningful...
rfc2068
http://cvs.php.net/co.php/php4.fubar/sapi/cli/php_cli.c?r=1.96&php=535b50c11235b3998d7a6fc4f3e0ab0c&nocache=6nnj8ccwqigw#382
Link to commentToby
Same here. Also very meaningfull, because there's only noted "Interactive Mode", which does not clearify in any way, what the "Interactive Mode" is/does/is used for?!
Link to commentAnonymous
If you followed the 2nd tip of the day, you may see that the interactive mode take the input as a pipe and process it once it reaches the php closing tag (?>, starting with the "<?php"(open php tag).
Link to commentusefull to step into some codes, section by section, for instance.