You are here: Newbie Define Paths question « PHP « IT news, forums, messages
Newbie Define Paths question

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация