safefilerewrite (function)

Purpose:

Write to a file without conflicts

Example:

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

Data Type(s):

safefilerewrite(file_name, contents);

Location:

users/helpers/helpers.php

Details:

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

<?php $security = ';<?php die();?>'; ?>
to
<?php $security = ''; ?>