|
Posted by Jackson Linux on 03/31/05 17:20
Hi,
I've set the following:
$nscfg['url'] ='http://www.domain.com/';
$nscfg['secure_url'] ='https://domain.com/';
$nscfg['site root'] = '/Users/username/public_html/';
$nscfg['base'] = 'http://www.domain.com/';
// For use in the HTML documents
define ("URL", $nscfg['url']);
// where to find Articles
define ("ARTICLES",$nscfg['url']."articles/");
// where to find Books
define ("BOOKS", $nscfg['url']."books/");
// where to find Resume
define ("CV", $nscfg['base']."cv/");
// where to find the various types of PHP includes ie sidebars
define ("INCLUDES", $nscfg['site root']."docs/");
And things like this:
<a class='credits-link' href='<?php echo URL ?>forms/mailform.htm'
title="Email Me"
target='_blank'>click</a>
work great.
What am I doing wrong when I try to make this:
<?php include_once INCLUDES."include.php"; ?>
work?
Thanks in advance!
Jack
Navigation:
[Reply to this message]
|