Help w/ Include File

Hi!

I have a file named “header_table.php” with the following code:

<?php echo "

Acrylic Math

"; ?>

My website’s “index.htm” file includes the following code:

<?php include "header_table.php"; ?>

The browser displays an EMPTY cell. Why?

By the way, the browser does display “…/header_table.php” by itself.

Thank you!

DoctorTR

Hi!

I changed the name of the index file to “index.php” and it worked!

Doctor TR

If this is for testing how things work, disregard this.

That is not how you want to be doing this.

  1. An h1 element shouldn’t be in a table.
  2. That seems to be static text, so you loose the benefit of dynamically including content when you are going that route.
Sponsor our Newsletter | Privacy Policy | Terms of Service