vertices
Apr 12 2004, 12:21 AM
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
Apr 12 2004, 12:47 AM
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
Apr 23 2004, 05:06 PM
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
Apr 23 2004, 05:12 PM
phobos, also you said register_globals is off but in the phpinfo() it says on. Maybe that is the culprit..
nasho
Apr 23 2004, 05:46 PM
never mind guys, it turns out that it has something to do with my domain name still being propagated.
Alexandre
Apr 23 2004, 07:33 PM
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.