Jump to content

dixie

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by dixie

  1. Thats not the script its the output of the script.
    This is the script and I think the problem is the include $_SERVER['DOCUMENT_ROOT'] as my files are not in my htdocs root but deeper in the directory structure. However I don't know how to fix it without re-writing every file ;-( even then I don't know if I am right.

    <?php
    // include the layout file
    include $_SERVER['DOCUMENT_ROOT'].
      '/layout.php';

    // Use the myheader function from layout.php
    myheader("Welcome to My Website!");

    // Include the welcome html page.
    include $_SERVER['DOCUMENT_ROOT'].
      '/html/index_page.html';
     
    // Include News Index File
    include $_SERVER['DOCUMENT_ROOT'].
      '/includes/news_index.php';
     
    // Use the footer function from layout.php
    footer();
    ?>
  2. I have the same blank screen and I downloaded the files from Sybex. All my other PHP scripts work fine.

    Source code of blank page is

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
    <BODY></BODY></HTML>

    This is the second book and none of the source code actually works (carp)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.