Page 1 of 1

DEFINE on entire site = Problem

Posted: Mon Mar 21, 2005 4:41 am
by Calimero
I looked at "The Manual" :D , and its strait-forward - it works.

My DEFINE-ing is in include file = languages.inc, and that file is included in the index.php ( just to give some background )

I need this:

How to make the constants available on all the pages of the web site - I intented to define them just this time and expected for them to be available on the entire site.

$SOLUTION_TO_ME = (Can this be done with DEFINE) ? 'code or instructions' : 'alternate way';


Thanks ahead !

Posted: Mon Mar 21, 2005 5:00 am
by CoderGoblin
As far as I am aware you have two options...

1) Load the include on every page.
2) Store the necessary values in a session.

Posted: Mon Mar 21, 2005 7:50 am
by feyd
yeah.. pretty much you need to include the file that defines them on all pages you wish to use the defines on..