If it is possible, how to increment the filename txt in php? I am working with php that I know very little, I need to increment the name of a txt file, so that a new json.txt
file is created whenever I send a file to the server. Does anyone know how to do this? I'm having to increment on the hand, I'm in json46.txt
.
$file = fopen('JSON46.txt', 'w'); // cria o arquivo json.txt
fwrite($file, $_POST['json']."\r\n\r\n\r\n");