Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $iniSettings = parse_ini_file("./basereality.php.ini");
- $filehandle = fopen("./basereality.php.fpm.ini", "w");
- foreach ($iniSettings as $key => $value) {
- if (is_bool($value) == true ||
- $value === 0 ||
- $value === 1) {
- if ($value === false) {
- $value = "0";
- }
- fwrite($filehandle, "php_admin_flag[$key] = $value".PHP_EOL);
- }
- else {
- fwrite($filehandle, "php_admin_value[$key] = \"$value\"".PHP_EOL);
- }
- }
- fclose($filehandle);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement