I receive errors(mentioned below code) when I switched my code to another system,
Configurations:
OS : Windows 7 php server : Xampp
Please help me t
I think you have mis-understood what Define & constants are/do it doesn't really make sense to define a constant in that way from within an Object.
Perhaps this is a better approach to what you are doing:
http://php.net/manual/en/language.oop5.constants.php
Alternatively, the most common usage of setting up items using defines is withing a si9mple setting or config file...