I am new to HTML and PHP.
All I want to do is that I made a HTML file and a PHP file and now I want to test it on my local server i.e. my own computer. My HTML file includes the following code:
<html>
<head>
<link rel="stylesheet" href="stylesheet.css" />
<title>Codecademy Languages</title>
</head>
<body>
<h1>Languages you can learn:</h1>
<div class="wrapper">
<ul>
<?php include 'Test001.php'; ?>
</ul>
</div>
</body>
</html>
and my PHP file named as Test001.php includes the following:
<?php
$langs = array("JavaScript",
"HTML/CSS", "PHP",
"Python", "Ruby");
foreach ($langs as $lang) {
echo "<li>$lang</li>";
}
unset($lang);
?>
How can I test the whole thing in my web browser? I am using Linux Ubuntu
Many Thanks