From d4e328c130ed27c64756fa0d7ce0e24f40caaab8 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Fri, 2 Jan 2004 00:26:25 +0000 Subject: [PATCH] Check if it's writable. git-svn-id: http://svn.automattic.com/wordpress/trunk@680 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/install-config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/install-config.php b/wp-admin/install-config.php index 4eee8ed5b..cdf7f750b 100644 --- a/wp-admin/install-config.php +++ b/wp-admin/install-config.php @@ -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) {