Page 1 of 1

store $_POST values under redhat

Posted: Fri Oct 12, 2007 8:50 am
by lepad
Hi I'm not sure whether this is the correct category for my question or not but I'll just give it a try:

Recently, I had some problems with data that was lost because of a glitch in one of the INSERT queries in MySQL. To make sure (and yes I'm a bit too paranoid about it :) ) that something like that never happens again, I would like to trace the data that's being passed from page to page. Therefore, my question as followed: Is there some default setting in Linux (I guess it would be the apache) that stores all the post data that's being passed on the server? If not, would you happen to know an application that is able to track such a thing (if any)?

Thanks in advance

Posted: Fri Oct 12, 2007 9:15 am
by Benjamin
Dump post data to a log file using PHP.

Posted: Fri Oct 12, 2007 9:29 am
by lepad
That is one way do to it. The thing is, I'd rather like to save it using some server app (built-in function (?)) than to write a php function. The reason I'd like to do it that way is because other people than myself are working on the php files but don't have access to the server itself. It's just a matter of being on the save side by having all data available and knowing what is going on.

Posted: Fri Oct 12, 2007 9:50 am
by Zoxive
error_log

Code: Select all

error_log($Data, 3, "/var/tmp/my-errors.log");