'.$date.' '.htmlspecialchars($msg).'
'."\r\n"); fclose($f); return refresh(0); } function refresh($lastrefresh) { global $filename; if(filemtime($filename) > $lastrefresh) { $lines = file($filename); // return the last 25 lines return array("wall" => join("\n", array_slice($lines, -25)), "update" => filemtime($filename)); } else { return false; } } require("sajax.php"); // $sajax_debug_mode = true; $sajax_failure_redirect = "http://sajax.info/sajaxfail.html"; sajax_export( array("name" => "add_line", "method" => "POST"), array("name" => "refresh", "method" => "GET") ); sajax_handle_client_request(); ?> Wall Sajax v - You are a guinea pig - This example illustrates the simplest possible graffiti wall. It isn't meant to be perfect, featureful, or even useful.
Checked #0