Hi I have to develop a code for file configuration in PHP.
My basic text file is stored in C:\abc
my text file name format is Mobile#_Code.request
Now I want to read code 9033 from the name of text file which always be there after _ and before .request
After getting code I will get data from MySQL DB and want to put this result in the form of message in the text file like "Hi 9033 your remaining balance is 50USD"
Now after putting message in same file I want to rename the file name as 923135470808_9033.done
means request changes in done.
please guide me.