PHP 3 to PHP 5 Upgrade… Variables in 3 didn't have $ in front… is there a setting for back compat?
OK, this is an odd request, and it might not even be fully true... but I'm upgrading someone's system ... and they are using OSCommerce (from a long time ago).
It appears their variables are referrenced without a dollar sign in front of them (which is new to me). I haven't done PHP in about 7 years, and I've always used dollar signs.
Is there a setting that I can throw in PHP 5 that says to assume these are variables?
mysql_connect(DB_SERVER, DB_UserName, DB_Password);
in my day, that would be:
mysql_connect($DB_Server, etc, etc);
Their site has THOUSANDS of files... no I don't want to go put dollar signs in front of everything.
I believe OSCommerce actually DEFINES these values, so the usage is correct (without the $).
define("DB_SERVER", "localhost");or something similar.
In other words, do not go through and update these with a $ before if they're actually defined constants.