safefilerewrite (function)

Return to Knowledgebase

Purpose

Write to a file without conflicts

Location

users/helpers/helpers.php

Parameters

# Parameter Data Type Required Description
1 $fileName Yes undocumented
2 $dataToSave Yes undocumented

Example

safefilerewrite("myfile.ini.php", "Hello world");

Further Documentation:

Note that this function is primarily used for ini files, but if you need a similar function, you can copy the function itself to usersc/includes/custom_functions.php and change to