4
If it is possible, how to increment the txt filename in php? I am working with php that I know very little, I need to increment the name of a txt file, to create a new file json.txt
whenever I send a file to the server. Does anyone know how to do this? I’m having to increment at hand, I’m on json46.txt
.
$file = fopen('JSON46.txt', 'w'); // cria o arquivo json.txt
fwrite($file, $_POST['json']."\r\n\r\n\r\n");
You want to change the name of the same file?
– Erlon Charles
I want to generate files incrementing the number in the name for example Json1.txt after Json2.txt always incrementing the number.
– daniel12345smith