Hello, help me figure it out. Here is the code:
function razdel() { $file = file("ancorrzd.txt"); foreach($file as $str_number => $str_content) { echo "строка " . ($str_number + 1) . " : " . $str_content; } $file = fopen ("rzd.txt","w"); $str = "$str_conten"; fputs ( $file, $str); fclose ($file);
Displays lines from ancorrzd.txt. Suppose the script is executed n times. It is necessary that every time you run in rzd.txt recorded all new line. Here is the link to the whole script.