If your uploads aren't working, try looking at the below reasons?
\$maxBuddyIconSize is set to 0 (zero), please set it to a higher value."; } else if (trim(substr(sprintf('%o', fileperms('buddyicons/')), -4)) != 777) { print "The directory buddyicons/ is not writeable, please CHMOD it to 0777."; } else if (ini_get('file_uploads') == 0) { if (file_exists('php.ini')) { print "File uploads are not supported on your server."; } else { @ini_set('file_uploads', 'On'); if (ini_get('file_uploads') == 0) { print "PHP cannot use ini_set to allow file uploads. Try creating a file called php.ini in the parent directory with the following contents:file_uploads = On\nupload_max_filesize = {$maxBuddyIconSize}M\npost_max_size = {$maxBuddyIconSize}M";
} else {
$continue = true;
}
}
} else {
$continue = true;
}
if (isset($continue)) {
$upload_max_filesize = substr(ini_get('upload_max_filesize'), 0, -1);
$post_max_size = substr(ini_get('post_max_size'), 0, -1);
if ($upload_max_filesize == 0 || $post_max_size == 0) {
print "Your max upload size is 0 (zero), please increase it.";
} else {
if ($upload_max_filesize >= ini_get('post_max_size')) {
$max = 'upload_max_filesize';
} else {
$max = 'post_max_size';
}
print "Things look good on your server, your max upload size is: " . ini_get('post_max_size') . "+-------------------------------+---------------------|
| PHP Configuration Variable | Suggested value |
+-------------------------------+---------------------|
| max_execution_time = " . space_fix(ini_get('max_execution_time'), 8) . " | >= 30 |
| max_input_time = " . space_fix(ini_get('max_input_time'), 12) . " | ~ 60 |
+-------------------------------+---------------------|
";
}
}
?>