I have browsed the PHP tutorial at W3Schools Online Web Tutorials (http://www.w3schools.com/ ). I think I understand why you all talk about frames as if the are an ancient programming style. I am experimenting with php. Below is the code I have written for a test file. I seem to be having trouble testing it. I essentially have five questions (with related questions).
1. Where do I put this code? Does it go in my root directory? Can I test it in said directory on my local hard drive or do I have to put it said directory on my remote webhost server which has PHP powers? Does it have to be in the same folder as the files it “requires” and any files they reference?
2. What are eligible names? phpheader.php, phpheader.htm, phpheader.html
3. How can I reference this code? Can I call it from a index.html file or index.php file? Can I just open this file by double clicking it once I have it named correctly?
4. Is phpbb sufficient or do I need nuke?
5. How, does one reference a left sidebar like one would have in the first column of a frameset?
<html>
<head>
<title>Test PHP Page</title>
</head>
<body>
<?php
//inserts the frame header file
require("header.html");
?>
<p> Some text </p>
<?php
//Prints something like: Monday January 15, 2003 05:51:38 AM
echo date("l F d, Y H:i:s A");
?>
</body>
</html>
1. Where do I put this code? Does it go in my root directory? Can I test it in said directory on my local hard drive or do I have to put it said directory on my remote webhost server which has PHP powers? Does it have to be in the same folder as the files it “requires” and any files they reference?
2. What are eligible names? phpheader.php, phpheader.htm, phpheader.html
3. How can I reference this code? Can I call it from a index.html file or index.php file? Can I just open this file by double clicking it once I have it named correctly?
4. Is phpbb sufficient or do I need nuke?
5. How, does one reference a left sidebar like one would have in the first column of a frameset?
<html>
<head>
<title>Test PHP Page</title>
</head>
<body>
<?php
//inserts the frame header file
require("header.html");
?>
<p> Some text </p>
<?php
//Prints something like: Monday January 15, 2003 05:51:38 AM
echo date("l F d, Y H:i:s A");
?>
</body>
</html>
