PHP notes for professionals

PHP notes for professionals.

This PHP Notes for Professionals book is compiled from Stack Overflow. Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA, see credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified.
This is an unofficial free book created for educational purposes and is not affiliated with official PHP group(s) or company(s) nor Stack Overflow. All trademarks and registered trademarks are the property of their respective company owners.

PHP notes for professionals

PHP CLI.

PHP can also be run from command line directly using the CLI (Command Line Interface).
CLI is basically the same as PHP from web servers, except some differences in terms of standard input and output.
Triggering
The PHP CLI allows four ways to run PHP code:
1. Standard input. Run the php command without any arguments, but pipe PHP code into it: echo '<?php echo "Hello world!";' | php
2. Filename as argument. Run the php command with the name of a PHP source file as the first argument: php hello_world.php
GoalKicker.com - PHP Notes for Professionals
3. Code as argument. Use the -r option in the php command, followed by the code to run. The <?php open tags are not required, as everything in the argument is considered as PHP code: php -r 'echo "Hello world!";'
4. Interactive shell. Use the -a option in the php command to launch an interactive shell. Then, type (or paste) PHP code and hit [ return ]: $ php -a Interactive mode enabled php > echo "Hello world!"; Hello world!




Бесплатно скачать электронную книгу в удобном формате, смотреть и читать:
Скачать книгу PHP notes for professionals - fileskachat.com, быстрое и бесплатное скачивание.

Скачать pdf
Ниже можно купить эту книгу по лучшей цене со скидкой с доставкой по всей России.Купить эту книгу



Скачать - pdf - Яндекс.Диск.


Дата публикации:





Теги:


Следующие учебники и книги:
Предыдущие статьи:


 


 

Книги, учебники, обучение по разделам




Не нашёл? Найди:





2024-03-27 23:20:41