store $_POST values under redhat

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
lepad
Forum Newbie
Posts: 12
Joined: Fri Oct 05, 2007 9:58 am

store $_POST values under redhat

Post 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
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Dump post data to a log file using PHP.
lepad
Forum Newbie
Posts: 12
Joined: Fri Oct 05, 2007 9:58 am

Post 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.
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

error_log

Code: Select all

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