I’m trying to find the equivalent of System.Web.HttpRequest in PHP for the current page, as I would like to access the current variables. Most, I realise, you can get from $_SERVER, but there seems to be some missing from there (e.g. Referer and cookie).
If anyone can help it would be much appreciated.
Referer is found in the
$_SERVERas the keyHTTP_REFERER.Cookies can be accessed through
$_COOKIEandset_cookie().