Newbie Define Paths question

From: Date: Thu, 31 Mar 2005 14:20:11 +0000
Subject: Newbie Define Paths question
Groups: php.general 
Request: Send a blank email to php-general+get-211958@lists.php.net to get a copy of this message
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

« previous php.general (#211958) next »