[PHP] Re: $HTTP_SERVER_VARS not accessible in Functions (fwd)
What is your PHP Version ? Try putting the global $HTTP_SERVER_VARS; print_r($HTTP_SERVER_VARS); in your custom function and check out what is it printing... -S. Sukumar I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but, within a custom function() this array appears empty. In the calling script, however, the $HTTP_SERVER_VARS[] array is defined. I thought this was supposed to be superglobal and available on every level? If not, is there another command I can use? I also tried $_SERVER[] but this appears to be always empty no matter what level I call it on. Thanks. Monty . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: $HTTP_SERVER_VARS not accessible in Functions
I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but, within a custom function() this array appears empty. In the calling script, however, the $HTTP_SERVER_VARS[] array is defined. I thought this was supposed to be superglobal and available on every level? If not, is there another command I can use? I also tried $_SERVER[] but this appears to be always empty no matter what level I call it on. $_SERVER, if you are in a current version, would be a super global. $_HTTP_SERVER_VARS would *NOT* be super global. You'll need: global $HTTP_SERVER_VARS; inside your function to import the data. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php