I have an old osCommerce site that was PHP4, now running on PHP5. Named constants defined with define()
are being evaluated incorrectly:
$string = '<a href="http://www.oscommerce.com" target="_blank">' . BOX_ENTRY_SUPPORT_SITE . '</a><br>';
will show as BOX_ENTRY_SUPPORT_SITE
, not the value placed in BOX_ENTRY_SUPPORT_SITE
.
Something needs to be changed in php.ini
?
I never ran into this problem when putting osCommerce sites on PHP5 from PHP4.
Most probably, that define isn't being define()
'd correctly. The default behaviour (with error reporting relaxed) is to show the constant like that when it isn't found.