I'm getting a bunch of errors on Production environment that I can't reproduce locally. Therefore I'm looking to find out which URL the user is requesting. This URL is currently not being outputted to the error log, so I'm just wondering how I would go by displaying that?
Asked
Active
Viewed 426 times
1 Answers
1
you can print to log file using trigger_error (http://php.net/trigger_error), ie:
trigger_error($_SERVER[REQUEST_URI]);
trigger_error by default generates user level notification, so it will not break anything.
if REQUEST_URI is not enough, please check Get the full URL in PHP.