how to change the name of file and save it in profile folder in php code example Example: rename file php rename('old_filename.txt', 'new_filename.txt');