V
Vadim32
Здравствуйте,
Дан HTML файл (index.html) c кодом внутри:
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">Code html</div></div><div class="sp-body"><div class="sp-content">
<html>
<head><title>My first HTML doc</title><head>
<body>
<a href="More explaneble.html">
<img src="lamp1.jpg" width="1270" height="180" alt="The picture which
says to you what is pic's about LAMP" boarder="0" />
<a/>
<p><h3>Hello on my HTML page</h3></p>
<p><h5>I wold like to show myself what I can do with my first HTML
knowleage<br />
Thank you that you wath it</p>
<p><h4>I would like to present on my webpage things are:</h4>
<ol>
<li>PHP script, right down next</li>
</ol>
<ol>
<li>LAMP (If you want to get to know what is LAMP is click <a
href="lamp.html" title= "All about LAMP. Just click it">here</a>)</li>
</ol>
<ol>
<ul>
<li>PHP</li>
<li>Linux</li>
<li>Apahe</li>
<li>MySQL</li>
</ul>
</ol>
<ol>
<li>Flash</li>
<li>HTML</li>
</ol>
</body>
</html>
Дан PHP код:
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">Code php</div></div><div class="sp-body"><div class="sp-content"> <?php
define ("number", 2);
$var_one = "The total is";
$var_two = 3;
$var_tree = number+$var_two;
echo "My screen telling me that: ",$var_one," ",$var_tree-$var_tree+number;
?>
В итоге файл index.html имеет вид:
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">Code configured</div></div><div class="sp-body"><div class="sp-content"><html>
<head><title>My first HTML doc</title><head>
<body>
<a href="More explaneble.html">
<img src="lamp1.jpg" width="1270" height="180" alt="The picture which
says to you what is pic's about LAMP" boarder="0" />
<a/>
<p><h3>Hello on my HTML page</h3></p>
<p><h5>I wold like to show myself what I can do with my first HTML
knowleage<br />
Thank you that you wath it</p>
<p><h4>I would like to present on my webpage things are:</h4>
<ol>
<li>PHP script, right down next</li>
</ol>
<?php
define ("number", 2);
$var_one = "The total is";
$var_two = 3;
$var_tree = number+$var_two;
echo "My screen telling me that: ",$var_one," ",$var_tree-$var_tree+number;
?>
<ol>
<li>LAMP (If you want to get to know what is LAMP is click <a
href="lamp.html" title= "All about LAMP. Just click it">here</a>)</li>
</ol>
<ol>
<ul>
<li>PHP</li>
<li>Linux</li>
<li>Apahe</li>
<li>MySQL</li>
</ul>
</ol>
<ol>
<li>Flash</li>
<li>HTML</li>
</ol>
</body>
</html>
Apache не обрабатывает php код, следовательно нет результата выполнения php кода в браузере. Почему? Где ошибка?
Спасибо.
Дан HTML файл (index.html) c кодом внутри:
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">Code html</div></div><div class="sp-body"><div class="sp-content">
<html>
<head><title>My first HTML doc</title><head>
<body>
<a href="More explaneble.html">
<img src="lamp1.jpg" width="1270" height="180" alt="The picture which
says to you what is pic's about LAMP" boarder="0" />
<a/>
<p><h3>Hello on my HTML page</h3></p>
<p><h5>I wold like to show myself what I can do with my first HTML
knowleage<br />
Thank you that you wath it</p>
<p><h4>I would like to present on my webpage things are:</h4>
<ol>
<li>PHP script, right down next</li>
</ol>
<ol>
<li>LAMP (If you want to get to know what is LAMP is click <a
href="lamp.html" title= "All about LAMP. Just click it">here</a>)</li>
</ol>
<ol>
<ul>
<li>PHP</li>
<li>Linux</li>
<li>Apahe</li>
<li>MySQL</li>
</ul>
</ol>
<ol>
<li>Flash</li>
<li>HTML</li>
</ol>
</body>
</html>
Дан PHP код:
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">Code php</div></div><div class="sp-body"><div class="sp-content"> <?php
define ("number", 2);
$var_one = "The total is";
$var_two = 3;
$var_tree = number+$var_two;
echo "My screen telling me that: ",$var_one," ",$var_tree-$var_tree+number;
?>
В итоге файл index.html имеет вид:
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">Code configured</div></div><div class="sp-body"><div class="sp-content"><html>
<head><title>My first HTML doc</title><head>
<body>
<a href="More explaneble.html">
<img src="lamp1.jpg" width="1270" height="180" alt="The picture which
says to you what is pic's about LAMP" boarder="0" />
<a/>
<p><h3>Hello on my HTML page</h3></p>
<p><h5>I wold like to show myself what I can do with my first HTML
knowleage<br />
Thank you that you wath it</p>
<p><h4>I would like to present on my webpage things are:</h4>
<ol>
<li>PHP script, right down next</li>
</ol>
<?php
define ("number", 2);
$var_one = "The total is";
$var_two = 3;
$var_tree = number+$var_two;
echo "My screen telling me that: ",$var_one," ",$var_tree-$var_tree+number;
?>
<ol>
<li>LAMP (If you want to get to know what is LAMP is click <a
href="lamp.html" title= "All about LAMP. Just click it">here</a>)</li>
</ol>
<ol>
<ul>
<li>PHP</li>
<li>Linux</li>
<li>Apahe</li>
<li>MySQL</li>
</ul>
</ol>
<ol>
<li>Flash</li>
<li>HTML</li>
</ol>
</body>
</html>
Apache не обрабатывает php код, следовательно нет результата выполнения php кода в браузере. Почему? Где ошибка?
Спасибо.