[thelist] php include
Russell Griechen
russgri at bellsouth.net
Wed Jan 29 22:13:01 CST 2003
//Thanks Paul Bennett and J.D.Welsh and Daniel Cardenas
> sometimes (and sorry i can't tell you specifically why) you have to
> explicitly declare the include path, thus (in an .htaccess file):
>
> php_value include_path /home/user/include
I have been studying but syntax like:
>
> php_value include_path /home/user/include
>
is a big hurdle...It seems that I must define Document Root if I am going to
get away from relative links
So hold my hand here:
My HelpDesk says:
"The Apache server is a shared server. The secured folder would also be
your Document Root. Hence the symbolic link for the $domain-secure to the
$domain-www directory."
// filling in the syntax: I have a folder named 'include' in /home/user/
include where
www= /home/user/www
// here is the content of 'paths.inc' which resides in the 'include' folder
along with 'head.inc' and 'footer.inc'
<?php
global $IncludePath;
$IncludePath = sportsmenafield.com-www($DOCUMENT_ROOT) . "/include/";
include('!paths.inc');
include($includePath . 'fileHead.inc');
include($includePath . 'fileFooter.inc');
$includesDir = 'includes/';
$cssDir = 'css/';
$jsDir = 'js/';
?>
So how am I doing?
code shown at http://sportsmenafield.com/index.txt
I called this code at:
page shown at http://sportsmenafield.com/index.php
Error message:
Parse error: parse error in /home/russgri/sportsmenafield-www/index.php on
line 6
Russell Griechen
More information about the thelist
mailing list