$localSettings = "<" . "?php$endl$local$endl?" . ">";
// Fix up a common line-ending problem (due to CVS on Windows)
$localSettings = str_replace( "\r\n", "\n", $localSettings );
-
- if( version_compare( phpversion(), "4.3.2" ) >= 0 ) {
- $xt = "xt"; # Refuse to overwrite an existing file
- } else {
- $xt = "wt"; # 'x' is not available prior to PHP 4.3.2. We did check above, but race conditions blah blah
- }
- $f = fopen( "LocalSettings.php", $xt );
+ $f = fopen( "LocalSettings.php", 'xt' );
if( $f == false ) {
dieout( "<p>Couldn't write out LocalSettings.php. Check that the directory permissions are correct and that there isn't already a file of that name here...</p>\n" .