????????????? 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://77np7.com/space-uid-197691.html>cialis 20</a> <a href=http://lishu.in/home.php?mod=space&uid=256848>Buy Cialis Online</a> <a href=http://cangzhouyatai.com/home.php?mod=space&uid=20490>buy cialis</a> <a href=http://www.qclm.com/home.php?mod=space&uid=176756>cialis online</a>
<a href=http://azithromycin247.us.com/>azithromycin</a>
e98hd9uq3U
<a href=https://paydayloans.us.org/>payday loans</a>
<a href=http://indocin247.us.com/>Indocin Pharmacy Sale</a>
<a href=http://medrolpack.us.org/>medrol 4mg</a> <a href=http://cephalexin250mg.us.org/>cephalexin online</a>
<a href=https://paydayloans.us.org/>loans for bad credit</a>
<a href=http://viagra247.us.com/>generic viagra</a> <a href=http://cephalexin250mg.us.org/>cephalexin</a> <a href=http://medrolpack.us.org/>medrol</a>
<a href=http://cialis365.us.com/>buy cialis</a> <a href=http://cialispills.us.org/>cialis pills</a> <a href=http://doxycycline100mg.us.org/>doxycycline hyclate</a>
erythromycin
<a href=http://lisinopril20mg.us.org/>lisinopril</a> <a href=http://cephalexin250mg.us.org/>keflex 250 mg</a>