Log query,Security

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
abalfazl
Forum Commoner
Posts: 71
Joined: Mon Sep 05, 2005 10:05 pm

Log query,Security

Post by abalfazl »

Hello!

Besides these, you benefit from logging queries either within your script or by the database itself, if it supports logging. Obviously, the logging is unable to prevent any harmful attempt, but it can be helpful to trace back which application has been circumvented. The log is not useful by itself, but through the information it contains. More detail is generally better than less.

http://php.hoxt.com/manual/en/security. ... ection.php

How Log query can improve security?
Darkzaelus
Forum Commoner
Posts: 94
Joined: Tue Sep 09, 2008 7:02 am

Re: Log query,Security

Post by Darkzaelus »

If SQL injection does happen, you can reverse it and learn from it, as in no perment damage. If you didn't have logging, you can't find out the weak areas of code.

Cheers, Darkzaelus
Post Reply