Hello, I am wondering why the exact same code, one running on 2 different enviornments gives me 2 totally different results.
Windows IIS PHP 4.7... and one running on Linux Apache PHP 4.2...
ON WINDOWS: $someArray = "ABC"; echo $someArray;
ON LINUX: $someArray = "ABC"; echo $someArray;
I then realized that if i declare $someArray = array(), it then works on the Windows version. This is ok except i have a whole bunch of code that works on the Linux enviornment and not the Windows, is there a way to change a setting in the PHP configuration to not force me to have to declare the variables as arrays before attemping to use them?
Doesn't make sense, really. I wonder if that echo in the Windows version is printing the letter "A" from the first word in "Array" or something? Change the value from "ABC" to "XYZ", make sure you are running the exact same little snippet shown here on both servers and see what your output is.