Hello! I write to the file array:
$fp = @fopen($_SERVER['DOCUMENT_ROOT']."/includes/config.php", "w"); @fwrite ($fp, "<?php\n\$config_user = " . var_export($config, true) . ";\n?>"); @fclose ($fp); Then I try to connect:
require $_SERVER['DOCUMENT_ROOT']."/includes/config.php"; It does not work, it gives out old data that was before fwrite . On another hosting there are no problems, everything works. Tell me what's wrong?
@before functions and see what error it gives out - Semushin Sergey