Okay, I can tell you how you I would do.
1- Store the values that you have the file with the previous name, store these values in a string type variable and separate them with a delimiter e.g -> "value1|value2|value3.
2- Delete the file with the previous name, you can do this with the following function
PHP код:
fremove("name.ini");
3- Change the name of the player.
4- Use sscanf and extracting the string that contains the values and place the variables where it should go each value, e.g:
PHP код:
sscanf(mystring, "p<|>iiii", var_value1, varvalue2, ...);
5- Finally you must create a file and store the value that contain the variables.
Note: I always use sql to store data, so that I do not know very well Yini, i don't know if there is a function that changes the name of a file, but it has not could do what I just wrote.