Help - Search - Members - Calendar
Full Version: PHP on Windows server and problems with variables
Hostony Board > General Support > PHP/MySQL
vertices
I just moved this database here from a Linux host. Everything was working fine before. MySQL Database accessed via PHP.

However, now, when I try to pass a variable through a link such as



The "page=2" part never passes the number "2" to the variable "page".


OR


The "benchmark=2001" part never passes the number "2001" to the variable "benchmark".



None of my pages that passed a variable in this manner before work correctly anymore. Anyone know why or how to fix it?
phobos
We turn off register_globals on our servers for security reasons.
You can access your variables by $_GET["variable"] = value;

If you need some more information please create php-info file, such as:

phpinfo.php

<?php
phpinfo();
?>

and access it through http://domain/path/phpinfo.php?variable=value.
nasho
Im having the same problem now. for example I have user.php?id=nasho in my url.. then do $id=$_GET['id']; in my php code to get the value but there is none. i tried doing print_r($_GET) and it also yields an empty array. Please help.
nasho
phobos, also you said register_globals is off but in the phpinfo() it says on. Maybe that is the culprit..
nasho
never mind guys, it turns out that it has something to do with my domain name still being propagated.
Alexandre
Yes, register_globals turned off.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here