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 Link to comment https://forums.phpfreaks.com/topic/114248-whats-wrong/ 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 Link to comment https://forums.phpfreaks.com/topic/114248-whats-wrong/#findComment-587509 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. Link to comment https://forums.phpfreaks.com/topic/114248-whats-wrong/#findComment-587655 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.