What version of PHP to code for?
Posted: Thu Sep 26, 2002 3:21 pm
I recently ran into troubles with the differences in PHP versions.
I created a script for a guy who said his server had 4.1.1 on it. So I used $_POST and $_SESSION variables. I found out after finishing the script that his server had 4.0.6 on it.
I have to do back through all the code and change $_POST to $HTTP_POST_VARS and $_SESSION TO $HTTP_SESSION_VARS, and globalize them. Thas was a pain in the ass.
What version does everyone else code for, to make it portable.
Zebrax
I created a script for a guy who said his server had 4.1.1 on it. So I used $_POST and $_SESSION variables. I found out after finishing the script that his server had 4.0.6 on it.
I have to do back through all the code and change $_POST to $HTTP_POST_VARS and $_SESSION TO $HTTP_SESSION_VARS, and globalize them. Thas was a pain in the ass.
What version does everyone else code for, to make it portable.
Zebrax