Is there any way to log the $_POST values passed to the PHP scripts in
Apache's access log?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Is there any way to log the $_POST values passed to the PHP scripts in
Apache's access log?
[/snip]
fopen the log file, write the $_POST variables and any other data you
would like to record along with a newline (\n). Make sure to fclose
the log file.
HTH!
--
PHP General Mailing List
Jay Blanchard wrote:
[snip]
Is there any way to log the $_POST values passed to the PHP scripts in
Apache's access log?
[/snip]
fopen the log file, write the $_POST variables and any other data you
would like to record along with a newline (\n). Make sure to fclose
the log file.
HTH!
I
[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
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
Probably better to shell a command to write to the system log - I don't think
PHP can do it directly. This would nott be subject to the contention problems
you cite in writing to either an apache log or a dedicated log.
HTH
Nick
On Tuesday 29 Jul 2003 8:36 pm, Jay Blanchard wrote:
[snip]
I
PROTECTED]
To: Jay Blanchard [EMAIL PROTECTED]; Bogdan Albei
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 1:42 PM
Subject: Re: [PHP] Apache logs to keep $_POST values
Probably better to shell a command to write to the system log - I don't
think
PHP can do it directly. This would nott
[snip]
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
8 matches
Mail list logo