Re: Apache logs to keep $_POST values
| From: | Bogdan Albei | Date: | Tue, 29 Jul 2003 19:45:19 +0000 |
| Subject: | Re: Apache logs to keep $_POST values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157416@lists.php.net to get a copy of this message | ||
Jay Blanchard wrote:
[snip] I wanted to know if Apache has a feature that could log the $_POST values. [/snip] I don't think so, you would probably have to consult an Apache list or the Apache manual. [snip] By the way, fopening the log file and write the $_POST variables won't work on a server with high activity because other requests could be processed by apache and logged before I can write my $_POST variables in it's access log so I would just mess up my logs. I could just keep my own log written by my application if Apache doesn't have such a feature. This helps a lot tracking bugs because people just don't remember what they've done when something went wrong. [/snip] True, I was just offering a solution to your situation. I like your idea better, but you are likely to have the same problem with a seperate log on a high traffic site, no? I don't think I would have a problem with a separate log because I write into the log file all the datas I want(URL, Referer, etc, and $_POST) at once so the log would be OK. The difference from writing into Apache's log is that Apaches writes the URL, Referer, etc and then I write the $_POST values and on high traffic that's not OK.