southbeach
Programmer
I have
I want to make sure that if the config.php script is called a 2nd or 3rd ... time, then constant variables are not "re-defined" thus avoiding the error this would cause.
Instead, I am getting
What am I missing?
Thank you all in advance for you assistance!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
Code:
if(constant(APPTITLE) == NULL) {
define ('APPTITLE' ,'POINT OF SALE'); // Application Title
define ('APPCOMPANY','MY BAR NAME'); // Name of company or banner title
define ('APPURL' ,'[URL unfurl="true"]http://localhost/pos/');[/URL] // Application URL
I want to make sure that if the config.php script is called a 2nd or 3rd ... time, then constant variables are not "re-defined" thus avoiding the error this would cause.
Instead, I am getting
Code:
Warning: constant() [function.constant]: Couldn't find constant APPTITLE in C:\wamp\[URL unfurl="true"]www\pos\bin\config.php[/URL] on line 11
What am I missing?
Thank you all in advance for you assistance!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.