Im trying to edit a line of code in a chat script. I know nothing about ajax or javascript I just know basic php.
The line i want to edit is in a tag. xmlhttp.responseText
outputs what's in chat.txt and puts it in the 'chatwindow' element. I just want it to display the date at the bottom of when chat.txt was last modified.
The original line is:
document.getElementById("chatwindow").innerHTML = xmlhttp.responseText;
and I want to do this:
document.getElementById("chatwindow").innerHTML = xmlhttp.responseText + date("F d Y H:i:s.", filectime("chat.txt"));
Could someone correct the syntax of my line?