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 $).

Look for

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.

Need Your Help

N-1th Loop Elements are missing

c# wpf for-loop wpf-controls

Hi I am using below code to generate textboxes in WPF Applicaiton dynamically.

Yii - Active Record Relations Has_Many Issue

activerecord yii has-many

Im new to Yii and am having trouble establishing AR relations.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.