Тема: Ошибка при запуске setup.php
Установил Денвер-2, проверил через броузер-работает.
Проблема в другом..
1.Скачал phpMyAdmin разархивировал на виртульный диск локальной машине, где установлен Денвер-2
2. Стал выполнять пошаговую инструкцию инсталяции phpMyAdmin. Вручную скопировал код, в созданой мною файл config.inc.php:
<?php
$i=0;
$i++;
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'cbb74bc'; // use here your password
?>
3. Создал папку config
4. открываю в Opera-браузере Z:/scripts/setup.php
В браузере отображат
* @copyright 2006 Michal ?iha? * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0 * @version $Id: setup.php 10748 2007-10-10 07:30:59Z cybot_tm $ */ // Grab phpMyAdmin version and PMA_dl function define('PMA_MINIMUM_COMMON', TRUE); define('PMA_SETUP', TRUE); chdir('..'); require_once './libraries/common.inc.php'; // Grab configuration defaults // Do not use $PMA_Config, it interferes with the one in $_SESSION // on servers with register_globals enabled $PMA_Config_Setup = new PMA_Config(); // Script information $script_info = 'phpMyAdmin ' . $PMA_Config_Setup->get('PMA_VERSION') . ' setup script by Michal ?iha? '; $script_version = '$Id: setup.php 10748 2007-10-10 07:30:59Z cybot_tm $'; // Grab action if (isset($_POST['action'])) { $action = $_POST['action']; } else { $action = ''; } // Grab wanted CRLF type if (isset($_POST['eoltype'])) { $eoltype = $_POST['eoltype']; } else { if (PMA_USR_OS == 'Win') { $eoltype = 'dos'; } else { $eoltype = 'unix'; } } // Detect which CRLF to use if ($eoltype == 'dos') { $crlf = "\r\n"; } elseif ($eoltype == 'mac') { $crlf = "\r"; } else { $crlf = "\n"; } if (isset($_POST['configuration']) && $action != 'clear') { // Grab previous configuration, if it should not be cleared $configuration = unserialize($_POST['configuration']); } else { // Start with empty configuration $configuration = array(); } // We rely on Servers array to exist, so create it here if (!isset($configuration['Servers']) || !is_array($configuration['Servers'])) { $configuration['Servers'] = array(); } // Used later $now = gmdate('D, d M Y H:i:s') . ' GMT'; // General header for no caching header('Expires: ' . $now); // rfc2616 - Section 14.21 header('Last-Modified: ' . $now); header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1 header('Pragma: no-cache'); // HTTP/1.0 // whether to show html header? if ($action != 'download') { // Define the charset to be used header('Content-Type: text/html; charset=utf-8'); // this needs to be echoed otherwise php with short tags complains echo '' . "\n"; ?>
phpMyAdmin get('PMA_VERSION'); ?> setup
' . '' . '' . '' . '' . '' . '' . '' ; } /** * Displays message * * @param string type of message (notice/warning/error) * @param string text of message * @param title optional title of message * * @return nothing */ function message($type, $text, $title = '') { echo '
' . "\n"; if (!empty($title)) { echo '
'; echo $title; echo '
........................ и т.д.
В чем проблема?? Помогите, целый день сижу!!!!!!!!!!