Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
Tracking down a posted comment

I have created a website on a linux redhat server which is running an apache server. The website is coded with php and uses a mysql database.

How do I track down when a specific comment was posted to my website?

I am not using any content management system. All web pages are created with raw php.

share|improve this question

marked as duplicate by pauska, the-wabbit, Chopper3 Jun 30 '11 at 9:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Dude, we just closed this question. Stop posting it. –  pauska Jun 30 '11 at 9:08
    
You closed the question because it did not contain enough info, what other info do you want? I wish people would just READ instead of closing questions inappropriately. –  oshirowanen Jun 30 '11 at 9:13
    
If your PHP code doesn't log that sort of information, then I'm afraid your out of luck. I suggest adding that feature to your code. –  Flimzy Jun 30 '11 at 9:14
    
@Flimzy, so basically, apache log files or mysql log files or any log file on the server cannot record what it is receiving from it's web pages? –  oshirowanen Jun 30 '11 at 9:15
2  
Answering your question would require knowledge of implementation details on your "comment" feature. As nobody but the original developer is likely to have it, your question is not answerable in its current form. –  the-wabbit Jun 30 '11 at 9:16
show 4 more comments

1 Answer 1

apache has no information about a posted comment, it just serves your files and processes your php

if you are using mysql, chances are the comment is stored in the database

if you were using wordpress the comment would be in the wp_comments table assuming a default install

if you coded the site then you should know where the comments are stored, if you dont know you should ask the person that coded it where they are stored.

take a look in the db or ask the developer is all you can do without giving us more information about the software you are running for your website

share|improve this answer
    
Yes, I can see the comment in the database, but I am trying to figure out which ip it was posted by, quick sql query was used to post the entry. –  oshirowanen Jun 30 '11 at 9:17
1  
if the php is not written to log the IP then you wont be able to track it down, your best effort would be to match up the comment timestamp (if it has one) with the apache access log but thats like finding a needle in a haystack if your site is busy –  anthonysomerset Jun 30 '11 at 9:19
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.