Whats the difference?
Posted: Sun Oct 31, 2010 3:20 am
Dear all,
I am new to PHP.
here are 2 codes:
1. index.html
<body>
<?php
include("menu.php");
?>
<h1> Welcome to my page! </h1>
</body>
2. index.php
<body>
<?php
include("menu.php");
?>
<h1> Welcome to my page! </h1>
</body>
here is the menu.php
<html>
<body>
<a href="/mypage/index.html">Home</a>
<a href="/mypage/tutorials.php">Tutorials</a>
<a href="/mypage/references.php">References</a>
<a href="/mypage/examples.php">Examples</a>
<a href="/mypage/about.php">About Us</a>
<a href="/mypage/contact.php">Contact Us</a>
</body>
</html>
the index.php show the home , tutorials, references, examples, about and contacts us links when executed but the index.html don't show.
What's the difference in both and what the problem in index.html.
Regards:
Muhammad Nadeem
I am new to PHP.
here are 2 codes:
1. index.html
<body>
<?php
include("menu.php");
?>
<h1> Welcome to my page! </h1>
</body>
2. index.php
<body>
<?php
include("menu.php");
?>
<h1> Welcome to my page! </h1>
</body>
here is the menu.php
<html>
<body>
<a href="/mypage/index.html">Home</a>
<a href="/mypage/tutorials.php">Tutorials</a>
<a href="/mypage/references.php">References</a>
<a href="/mypage/examples.php">Examples</a>
<a href="/mypage/about.php">About Us</a>
<a href="/mypage/contact.php">Contact Us</a>
</body>
</html>
the index.php show the home , tutorials, references, examples, about and contacts us links when executed but the index.html don't show.
What's the difference in both and what the problem in index.html.
Regards:
Muhammad Nadeem