Jump to content

dixie

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dixie's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. How do webservers with hundreds of website "roots" get round that then :-\ Assuming each of these websites on the same server can use $_SERVER['DOCUMENT_ROOT']
  2. My other PHP files will not work if I change the directive. Unless I can have more than one directive in php.ini or httpd.conf. ??
  3. 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(); ?>
  4. 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.