????????????? PHP. ??????, ???????? ????????????????
??? ?? ??????, HTML ? CSS ????????????? ??? ???????? ? ?????????? ???-???????. ?????? ????????? ??????????? ?? ????, ?? ??????? ?? ?????? ??????????. ?? ??????? ???????? ????????????? ??????? ????????? ? ??????????? (????????? ???? ????), ??? ???? ????????? ????????? ?? ?????????, ? ??????? ??????? ????? ?????????? ????????? ???? ???????. ???? ????? ??????? "??????" ? "?????", ? ??????? ??????????? ?????? ?????? ? ?????? ????? ??????????????. ??????????? ??????? ???? ???????? ???, ??????, ?????????? ????? ??????. ??????? ??????? ????????? ? ??????? ?? ??????? ???????? ????? ? ? ?????? "??????". ?????, ?? ?????? ???????? ? ?????? ????????? ????? ?????????, ???????? ?? ?? ?????? ????? ????????? ????????. ???????? ?????? ?? ?????? ? ???? "??????". ???????????? ????????? ? ???????, ?? ?????? ??? ? ???? ? ????? ?????-?? ??????, ??????, ????? ?? ???????? ???? ?? ????, ? ?????? ???????????
??? ??? ? ????????? ?????? ????? ? ????????? ???????? ? ??????? ??? ?????????? ???????????????. ???? ? ???, ??? ??? ??????? ???-??????? ? ???-??????? ????????????? ????? ???-?????? ????????? ????? ??????????????? ????????. ??? ???, ?? ?????????? ???????????? ????? ?????? ?????????? ?????????? ???? ????????. ??? ??? ?????? ??????????? ?? ???-???????, ? ??????? ???????????? ????? ???? ? ?? ???????????.
PHP ???? ?? ????? ???????????????. PHP-???????, ??????????????? ??????? ???????? PHP, ?????????, ??? ???????, ? ?????? ? ??????????? php. ??? ???-?????? ????????????? ????? ???????, ??? ??? ??????? ???????? ????? ? ??????????? php, ??? ?????????? ?? ????? ???????????? ???????? ???????, ? ??????? ?????????????? ??????????????? PHP.
PHP ???? ? ???????????????? ????? ??????????? ????:
<?php ... ?>
?????? ??????? ?????????????? ?????????? PHP-????. ?????? ??? ???? ??????????? ???????? ??? ????, ? ????? ????????? ?????????, ? ??????? ? ??????? ???? ?????.
?????????? ????????? ??????. ? ???????? ???????? ???-??????? ????? ???? test.php ?? ????????? ??????????:
?????? ?1 <?php echo "?????? ?2"; ?> ?????? ?3
??? ??????? ?????? ????? ? ??????? HTTP-??????? ???-?????? ?????????, ??? ? ???? ?????????? php ? ?????? ??? ?? ????????? ?????????????? PHP. PHP ?????? ? ????? ???????????
<?php echo "?????? ?2"; ?>
?????? ??????? ?????????????? ?????????? PHP-???? ? ?????? ??? ?????????. ???????? echo ????? PHP ??????? ????????? ???????, ???????? ??????????, ????? ? ?.?., ????????? ?? ???. ????? ?????????? ???? ??????????? ?????????? ?? ????????? ?? ?????????? (?????). ????? ???????, ?????????? ????? ?????? ???:
?????? ?1 ?????? ?2 ?????? ?3
??????? ????????, ??? ??? ???? ???? ????????? ??? ???? ?? ????? ?? ??????????, ??? ?????????? ? ??????????? ?????? ??? ?????????? ?????? ?? ??????.
?????????? ??? ???? ??????. ??????? ???? index.php ? ??????????:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo "????????"; ?></title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> </head> <body> <div>??????? ????: <?php echo date('d.m.Y'); ?></div> </body> </html>
????????????? ?????? ??????? ???????????
<?php echo "????????"; ?>
?????
<?php echo date('d.m.Y'); ?>
??????? date ?????????? ???? ? ???????, ????????? ? ?????????, ??????? ???????????? ??????? ???????? echo. ?????????, ??????? ?????? ????????????, ?????????? ???????? ??? HTML-????????:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>????????</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> </head> <body> <div>??????? ????: 11.11.2010</div> </body> </html>
????? ???????, ?????????? ?? ????? ??????????? ??????????, ????? ?????? ????? ???????? ?????????????? ???????????, ? ????? ???????? ? ???? ?????????? ??????. ?????? ????????? ???????? ?????? ???? HTML-?????? ????? ??????? ? ??????????? php, ??? ???? ??????????? ????? ???????? ????? ???????????? ? ??????? PHP.
?????, ????????? ??????????, ??? ?????? PHP ?? ?????? ????????? HTTP. ????????, ? ??? ???? ????????? HTML-???????? (???? index.html):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>????????</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> </head> <body> ??????, ???! </body> </html>
???-?????? ?????? ?????????? ????? ????? ??? ????, ??????????? ?????? HTTP-?????????. HTTP-????????? ?????? ???-??????? ?? ?????? ????? ?????:
HTTP/1.1 200 OK Date: Mon, 11 Nov 2010 12:01:48 GMT Server: Apache/2.2.17 Last-Modified: Mon, 11 Nov 2010 12:01:34 GMT Accept-Ranges: bytes Content-Length: 343 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: text/html; charset=UTF-8
??????? ?????????? ????? ? html ?? php, ? ??????
??????, ???!
??????? ?? PHP-???????????
<?php echo "??????, ???!"; ?>
?????? ???-?????? ????? ???????? ??? ???????? ?? ????????????? PHP. ????????, ??? ???? HTTP-?????? (??? ????????) ?????? ???????? ????? ??. ???????? ?? ????????? HTTP-??????:
HTTP/1.1 200 OK Date: Mon, 11 Nov 2010 12:02:50 GMT Server: Apache/2.2.17 X-Powered-By: PHP/5.3.4 Content-Length: 343 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: text/html; charset=UTF-8
????? ?? ???????? ?????????? ??????? ????????? ????????? X-Powered-By. ???? ?????????? PHP ??????? ???? ????, ??? ?? ???????????? ? ????????? ???????? (??? ??????????? ????? ?????????).
? ?????? ?? ????????? ?????? ???-?????? ?????????? HTTP-????????? ??????? ??????????????? ????? ??????? ? ????????? ???????????. ????? ?? ??????????? ????????????? ??????????????? PHP, ????????? ???????????? ?? ?????, ? ?????? ????? ?????? ??????? (?????? ???? ???? HTTP-??????). ???? PHP ???????? ????????????? HTTP-????????? ????????????? ??????, ??? ?????? ???????? ??????????? ???????????? (???? ????? ? ?????? ??????). ????????, ??? ????????? ???????? ????????????? ?????? ?? ?? ???????? ???????, ?? ???? ?? ??????? ??????. ?????? ????? ????? ??????????????:
-
????????? ????? ????? ???????????? PHP:
<span>?????? ?????</span> <?php /* ????? ????????? ????????????? ??????????, ?.?. ??? ??? ???? ?????????? ???????. ???????? ????????????? ????? ???? */ ?>
????? ????????, ??? ???? ?????? ?????? ????? ???????????? PHP ???????????? ???????? HTTP-??????????.
-
PHP-???????? ??? ???????, ????????? ???-????:
<?php echo "hi"; /* ????????? ?????????? */ ?>
-
??? ???? ???????????????? ??????, ????? ????????? ???????????? ????? ????, ??? ????????????? PHP ??????? ?????-???? ?????????????? (???? ??? ????? ????????):
<?php $id++; // ???????????? ????? ?????????????? ? ???, ??? ?????????? $id ?? ????????????????, ??? ???????? ?? ????? ???????? ?????????? /* ????????? ?????????? */ ?>
?????? ?????, ?????????? ? ?????? ????????, ??????? ????????? ??? ? ???? ?? ???????, ?? ????? ?????, ? ?????, ???????.
? ?????? ???????? ?????? ?????????????? HTTP-?????????? ? ??????? PHP. ????????, ?????????? ??????????? CSS-???? ? ??????? PHP. ?????????? ????? style.php:
<?php $darkcolor = "#003300"; echo ".navi { background: $darkcolor }"; echo ".left-drop { border: 1px solid $darkcolor }"; ?>
??????? ???? ????????, ??? ??? ?????? CSS-????, ??? ????? ????????????? ????????? Content-Type ?? ????????? text/css ? ??????? ??????? header:
<?php header("Content-Type: text/css"); $darkcolor = "#003300"; echo ".navi { background: $darkcolor }"; echo ".left-drop { border: 1px solid $darkcolor }"; ?>
?????????????? ??????????????? ?????????? ???????????? ? ???????? HTTP-?????????? ?????????? ??????? header ???????? ??? ????? ???? ? ????, ???? ?????????????? ??????????? ????????? ??????.
??? PHP ????? ???????? ??? ????? ? ?????, ?? ?? ????, ???????, ???????????. ? ????????? ????????? ? ???????? ??? ?????????? ? ????????? PHP ??? ?????? ? ????? ???-????????.
<a href=http://buy-augmentin.store/>augmentin</a> <a href=http://buy-celexa.shop/>buy celexa online</a>
<a href=http://buyantabuse.shop/>buy antabuse online</a> <a href=http://buy-phenergan.shop/>buy phenergan</a> <a href=http://azithromycin.fail/>azithromycin</a>
<a href=http://methotrexate.schule/>methotrexate price</a> <a href=http://buyinderal.shop/>buy inderal online</a> <a href=http://buy-crestor.work/>buy crestor</a>
<a href=http://buytetracycline.shop/>buy tetracycline online without prescription</a>
<a href=http://viagrapills.pro/>cheap viagra pills</a> <a href=http://propranololonline.pro/>propranolol online</a>
<a href=http://genericlasix.pro/>lasix</a> <a href=http://buy-celexa.shop/>celexa lexapro</a> <a href=http://zetia.fund/>zetia</a> <a href=http://buy-phenergan.shop/>buy phenergan</a>
<a href=http://buy-amoxicillin.reisen/>amoxicillin</a>
<a href=http://buy-abilify.reisen/>buy abilify</a> <a href=http://priceoflevitra.pro/>click here</a>
<a href=http://strattera.shop/>strattera</a>
<a href=http://azithromycin247.us.com/>azithromycin order</a>
e98hd9uq3U