Hi,
Yes well first what resources have you got to work with, e.g. a database.
The easiest way that i have found is just to use a frameset, the chat frame reloads every 3 seconds and the the other frame is the chat form.
When the chat form is submitted you can format the chat data into html code and then display it to the user.
If you want only two people two have access to it you could have a password to allow access. this should get you started:
<?php
$chatdata = "/path/to/www/.chat";
function write_chat($str) {
if($fd = @fopen($GLOBALS[ "chatdata"], "a")) {
fputs($fd, $str);
fclose($fd);
}
}
function get_var($name,$default) {
if ($var = getenv($name)) {
return $var;
} else {
return $default;
}
}
$new_chatdata = require($chatdata) . "\n" . $frmChat;
write_chat($new_chatdata);
?>
this php code will take a form variable frmChat and write it to a file.
E-Mail me when you need more...
Elfyn