$HTTP_GET_VARS not accessible from within INCLUDEd code?
I have run into this strange problem where i am not able to access $HTTP_GET_VARS from within a piece of code that itself is included in the the main index.php. I have to use $HTTP_GET_VARS because the host is running PHP 4.0.6
What i do is include the content in the index.php frame using include_once(). This included code also needs to read some variables with $HTTP_GET_VARS. But it turns out it doesn't work, echoing the variable just returns nothing.
The same code (using $_GET instead of $HTTP_GET_VARS) works flawless on a recent version of PHP.
Could anybody give me a hint or is this a known issue in any way?
You hit the nail on the head, adding this to the included files allowed to access the variables. Thanks for the help DJ P@CkMaN!
As for the host running this old server software, i totally agree. Its only a small host, and i didn't pick them. They said they don't update because they have other sites running there which would be broken then, true obviously. Well, they'd just need to deploy a new server, but its just a small host, so...
But thanks to your help at least everything works for now