| 1 |
* Basics need for PHP |
| 2 |
^ PhpStorm |
| 3 |
a) it's an integrated environment of development |
| 4 |
^ Web or local hosting |
| 5 |
^ Extension "xDebug" |
| 6 |
^ Php -- it's a script language (not a program language) |
| 7 |
a) variables in Php dynamically-typical |
| 8 |
* PHPStorm |
| 9 |
^ first, we create project |
| 10 |
^ create new file (alt + insert), where usually call the main "index.php" |
| 11 |
^ $ -- in php we make variable with this sign |
| 12 |
a) $a = 1; |
| 13 |
b) numbers in php without quotes (like in JS) |
| 14 |
c) always start with tag "<?php" |
| 15 |
`we don't have to close this tag, but should do, especially if we have html in or after |
| 16 |
`so it's better "<?php ?>" |
| 17 |
d) after $a = 1; we can make maths operations with this variable |
| 18 |
* PHP |
| 19 |
^ in php "Constructions" |
| 20 |
a) with "constructions" we can see something in web window |
| 21 |
b) echo $a + $b; |
| 22 |
`echo gives output in web window |
| 23 |
`echo -- it's a construction |
| 24 |
^ PHP shows data only with webserver |
| 25 |
^ intepretator -- a programme which reads files in variables and accomplish instructions that we write |
| 26 |
* PhpStorm |
| 27 |
^ for creating new file (index.php) |
| 28 |
a) press on ready project folder > rbm > create new file |
| 29 |
^ PhpStorm allows to control database |
| 30 |
^ PhpStorm allows to work with remote hotings |
Комментарии