Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<html>
<head>
<title>Тест 1</title>
</head>
<body>
<?php
/* Ако е първи април показваме цитат */
if (date('md') == '0401') {
echo 'A bookstore is one of the onli pieces of evidence we have' .
'that people are still thinking. <i>Jerry Seinfeld</i>';
} else {
echo 'Good morning!';
}
?>
</body>
</html>
iwanov каза:Май нещо такова имаше в предвид, как се свързва php и html
Код:<html> <head> <title>Тест 1</title> </head> <body> <?php /* Ако е първи април показваме цитат */ if (date('md') == '0401') { echo 'A bookstore is one of the onli pieces of evidence we have' . 'that people are still thinking. <i>Jerry Seinfeld</i>'; } else { echo 'Good morning!'; } ?> </body> </html>
Ми твоето обяснение беше... да не казвам какво. Ти си искал просто да видиш един php скрипт.. Ето ти един от най-простите:CaMoTeH_ каза:iwanov каза:Май нещо такова имаше в предвид, как се свързва php и html
Код:<html> <head> <title>Тест 1</title> </head> <body> <?php /* Ако е първи април показваме цитат */ if (date('md') == '0401') { echo 'A bookstore is one of the onli pieces of evidence we have' . 'that people are still thinking. <i>Jerry Seinfeld</i>'; } else { echo 'Good morning!'; } ?> </body> </html>
И ето кой ме разбра без излишни думи :?:
<html>
<head>
<title>eto</title>
</head>
<body>
<?
$script="Primeren script";
echo $script;
?>
</body>
</html>