????????????? 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 ??? ?????? ? ????? ???-????????.

Комментарии

Оставить комментарий »

 
AaronElelm
1 января 2018, 7:43
 

wh0cd1521417 <a href=http://ventolin02.us.com/>ventolin</a>

BennyEruri
1 января 2018, 10:01
 

wh0cd2005013 <a href=http://tadalafil.fun/>tadalafil 40 mg</a>

Michaelsnity
1 января 2018, 10:13
 

wh0cd1521417 <a href=http://buytorsemide.us.com/>torsemide</a> <a href=http://buycleocingel.us.com/>cleocin gel without prescription</a> <a href=http://buytorsemide.us.org/>torsemide generic</a> <a href=http://crestorgeneric.us.com/>crestor</a> <a href=http://buycleocin.us.org/>cleocin t pledgets</a>

Charlesinife
1 января 2018, 11:19
 

wh0cd554225 <a href=http://genericcialis.fun/>cialis</a> <a href=http://azithromycin.fun/>azithromycin</a> <a href=http://adalat.fun/>adalat</a> <a href=http://tadacip.services/>tadacip</a> <a href=http://flagyl.fun/>generic for flagyl</a> <a href=http://phenergan.fun/>phenergan</a> <a href=http://trazodone.services/>trazodone</a> <a href=http://eloconointmentforsale.shop/>generic elocon</a> <a href=http://eurax.fun/>eurax</a> <a href=http://buypropecia.fun/>where to buy finasteride online</a> <a href=http://erythromycin.fun/>erythromycin</a>

AaronElelm
1 января 2018, 11:23
 

wh0cd2972205 <a href=http://mobic911.us.org/>mobic</a> <a href=http://cialis04.us.com/>buy cialis</a> <a href=http://tretinoin02.us.com/>tretinoin cream 0.05 price</a> <a href=http://pyridium911.us.org/>phenazopyridine hydrochloride pyridium</a>

KennethSpern
1 января 2018, 12:25
 

wh0cd2972205 <a href=http://abilifycost.store/>cost of abilify</a> <a href=http://tadalissx.fun/>generic tadalis</a> <a href=http://clonidinehcl.store/>continue reading</a> <a href=http://albuterolipratropium.shop/>albuterol ipratropium</a> <a href=http://albendazole.fun/>albendazole</a>

Michaelsnity
1 января 2018, 13:40
 

wh0cd1521417 <a href=http://buypaxil.us.com/>40mg paxil</a> <a href=http://buyvpxl.us.org/>buy vpxl</a> <a href=http://cleocingel.us.org/>cleocin hcl</a> <a href=http://serpina.us.org/>Serpina</a> <a href=http://tadalis.us.org/>tadalis</a> <a href=http://buybuspar.us.com/>buspirone pill</a>

Charlesinife
1 января 2018, 21:15
 

wh0cd70629 <a href=http://buyviagraonline.fun/>buy viagra online</a> <a href=http://benicar.fun/>benicar</a> <a href=http://sildenafil100mg.cricket/>sildenafil 100mg</a> <a href=http://erythromycin250mg.store/>erythromycin 500 mg</a> <a href=http://amoxil.fun/>buy amoxil without prescription</a> <a href=http://genericbentyl.store/>generic bentyl</a> <a href=http://doxycyclinehyclate100mg.store/>doxycycline hyclate 100mg</a> <a href=http://euraxwithoutprescription.store/>eurax</a> <a href=http://meloxicam.store/>mobic</a> <a href=http://retinacream.shop/>buy retin-a cream</a> <a href=http://ampicillin500mg.shop/>ampicillin</a> <a href=http://genericeffexor.shop/>generic effexor</a> <a href=http://microzide.shop/>microzide</a> <a href=http://viagra100mg.store/>viagra</a>

AaronElelm
1 января 2018, 22:54
 

wh0cd554225 <a href=http://methotrexate911.us.com/>MEDICATION METHOTREXATE</a> <a href=http://tadalafil01.us.org/>TADALAFIL BEST PRICE</a> <a href=http://pyridium911.us.org/>pyridium</a> <a href=http://zanaflex911.us.com/>Generic Zanaflex</a>

Charlesinife
1 января 2018, 23:05
 

wh0cd2972205 <a href=http://cialisprice.fun/>buy cialis</a> <a href=http://orlistat.fun/>orlistat</a> <a href=http://viagraonline.services/>viagra</a> <a href=http://robaxin.fun/>robaxin</a> <a href=http://prednisone5mg.store/>can i purchase prednisone without a prescription</a> <a href=http://zanaflex.fun/>web site</a>

Оставить комментарий

Ваше имя
 
Ваш e-mail
 
Комментарий