geethalakshmi Posted July 11, 2008 Share Posted July 11, 2008 I'm trying to access one of the standard CGI variables (such as $DOCUMENT_ROOT or $HTTP_REFERER) in a user-defined function, and it can't seem to find it. What's wrong? Geetha http://easycalculation.com www.0123456789.co.in Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted July 11, 2008 Share Posted July 11, 2008 We can't help you unless you post the script that's failing between tags. Ken Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted July 11, 2008 Share Posted July 11, 2008 Use $_SERVER['DOCUMENT_ROOT'] or $_SERVER['HTTP_REFERER']... instead. $DOCUMENT_ROOT or $HTTP_REFERER are only populated when register_globals are on, which they have not been for a long time now and have been completely removed in upcoming php6. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.