Check if it's writable.

git-svn-id: https://develop.svn.wordpress.org/trunk@680 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-01-02 00:26:25 +00:00
parent d14d30dbf9
commit e330103f7e
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ switch($step) {
die('Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.');
$configFile = file('../wp-config-sample.php');
if (!is_writable('../')) die("Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually.");
$handle = fopen('../wp-config.php', 'w');
foreach ($configFile as $line_num => $line) {