dixie
-
Posts
4 -
Joined
-
Last visited
Never
Posts posted by dixie
-
-
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. ??
-
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();
?> -
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)
simple error
in PHP Coding Help
Posted
Assuming each of these websites on the same server can use $_SERVER['DOCUMENT_ROOT']