How to Get(listen) to POST and GET Methods send to my server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
arefenayat
Forum Newbie
Posts: 3
Joined: Wed Feb 18, 2015 9:44 am

How to Get(listen) to POST and GET Methods send to my server

Post by arefenayat »

hi guys i want to Get all POST and GET Methods which Everyone send to my server web applications and save as log with php. how can i do this ? (in xampp)
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How to Get(listen) to POST and GET Methods send to my se

Post by Celauran »

Apache log should already be catching all requests. If you want to do it separately in PHP, say to keep the parameter values or something, point everything to a front controller and log it there.
arefenayat
Forum Newbie
Posts: 3
Joined: Wed Feb 18, 2015 9:44 am

Re: How to Get(listen) to POST and GET Methods send to my se

Post by arefenayat »

but apache don't log post Requests content
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How to Get(listen) to POST and GET Methods send to my se

Post by Celauran »

If you want to do it separately in PHP, say to keep the parameter values or something, point everything to a front controller and log it there.
arefenayat
Forum Newbie
Posts: 3
Joined: Wed Feb 18, 2015 9:44 am

Re: How to Get(listen) to POST and GET Methods send to my se

Post by arefenayat »

php_value auto_prepend_file log.php
Post Reply