PHP code / version help
Posted by: corduroy9
Posted on: 2009-02-12 12:16:00
I just transferred my website from GoDaddy to Dreamhost.
On GoDaddy, the PHP code worked fine, but now it does not. I'm guessing it's a version issue.
For example, this code used to return a TRUE on the goDadddy hosted site, but now it never returns TRUE ...
if ($HTTP_POST_VARS) {
...and variables in my forms are not populated as before...but I can get them from this code...
$login = $_POST['login']; //get the login form var
Here is another example...I have this code at the top of some pages to get any passed variables...
while (list($key,$value)=each($HTTP_GET_VARS))
${$key} = $value;
And I get a warning on the each():
Warning: Variable passed to each() is not an array or object
I'm wondering if I need to re-code all my pages, or is there a workaround for this issue?
When I do phpinfo() it says I'm using version 5.2.
Thanks in advance! I'm not a real PHP developer, just trying to get by.