define function from other files
Posted: Wed Feb 21, 2007 3:47 am
Is there a way in PHP to use the define function from another file in another directory in your PHP code?
For example my code is in this directory /home/dirA/dirB/dirC/
the the define function was from the directory /home/dirA/
define('KEYWORD',boi);
how can i use it in my code so that if I echo KEYWORD, it will display boi
without putting the define function in my code.
thank you guys for your help
For example my code is in this directory /home/dirA/dirB/dirC/
the the define function was from the directory /home/dirA/
define('KEYWORD',boi);
how can i use it in my code so that if I echo KEYWORD, it will display boi
without putting the define function in my code.
thank you guys for your help