34,35c34,35 < if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "talktoday.txt")) { < $prerel=str_replace("~~", "\n", file_get_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "talktoday.txt")); --- > if (file_exists(__DIR__ . "/talktoday.txt")) { > $prerel=str_replace("~~", "\n", file_get_contents(__DIR__ . "/talktoday.txt")); 51c51 < file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "talk_today_" . $myip . ".txt", str_replace('+', ' ', urldecode($_POST['nickname'])) . " says at " . $twoday . '/' . $twomon . '/' . (1900 + $localtime_assoc[5]) . ' ' . $twohour . ':' . $twomin . " GMT ... " . $recpref . str_replace("~~", "\n", str_replace('+', ' ', urldecode($_POST['msg'])))); --- > file_put_contents(__DIR__ . "/talk_today_" . $myip . ".txt", str_replace('+', ' ', urldecode($_POST['nickname'])) . " says at " . $twoday . '/' . $twomon . '/' . (1900 + $localtime_assoc[5]) . ' ' . $twohour . ':' . $twomin . " GMT ... " . $recpref . str_replace("~~", "\n", str_replace('+', ' ', urldecode($_POST['msg'])))); 53c53 < file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "talk_today_" . $myip . ".txt", $myip . " says at " . $twoday . '/' . $twomon . '/' . (1900 + $localtime_assoc[5]) . ' ' . $twohour . ':' . $twomin . " GMT ... " . $recpref . str_replace("~~", "\n", str_replace('+', ' ', urldecode($_POST['msg'])))); --- > file_put_contents(__DIR__ . "/talk_today_" . $myip . ".txt", $myip . " says at " . $twoday . '/' . $twomon . '/' . (1900 + $localtime_assoc[5]) . ' ' . $twohour . ':' . $twomin . " GMT ... " . $recpref . str_replace("~~", "\n", str_replace('+', ' ', urldecode($_POST['msg'])))); 59c59 < $it = new GlobIterator($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "talk_today*.txt"); --- > $it = new GlobIterator(__DIR__ . "/talk_today*.txt"); 75c75 < file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "talktoday.txt", $prerel); --- > file_put_contents(__DIR__ . "/talktoday.txt", $prerel);