i just switched servers, and before everything worked out just fine...but now i have pages like...
profile.php?id=2
but it's treating it as if it's not picking up the $id after the ?...although it used to on our other server...so i was thinking my settings arent right or maybe im using the wrong version of something, my current php version is 4.3.6...but i dont know where to look to try to fix the problem
Your new server is (correctly) setup with REGISTER GLOBALS turned off.
With that off, variables in the URL, such as your "id=2" are not automatically turned into $id. Rather, you'll have to reference them by the global variable $_GET .... ie:
$_GET['id'] should be set to "2" now.
You can get around this by doing something like this at the top of your script:
However, this defeats the purpose of having the automatic registration of those variables off. You should do some error and sanity checking on them before making them global as I showed above.
and note the two $$ in front of var.
jcokos's might be safer though
If you can't find any nice, central place to put this, like in a config file or something, you can look at the auto prepend stuff in php, put that in your .htaccess file.
check to see if your script has got a new version that doesn't have to work with register globals turned on - if you can upgrade, you will probably be more secure, and won't have to do all this.
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
You have not yet logged in, or registered properly as a member
You are a member, but no longer have posting rights.
This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.