Jump to content

[SOLVED] Constants on included files?


blueman378

Recommended Posts

hi guys i have something like this:

 

index.php

this includes:

constants.php

and

register.php

in that order

 

in constants.php

 

i have

define("SHOP_NAME", "Gold Reaper");

and in register i have

echo SHOP_NAME;

 

however when this is run it simply outputs  SHOP_NAME

 

no errors, hwever when i move the define into register it works, (yes the constants file is being include properly)

 

cheers

Link to comment
https://forums.phpfreaks.com/topic/118191-solved-constants-on-included-files/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.