发个测试帖
寻求一个很好的门户博客系统,要求很简单:有个强大的HTML编辑器!
不知道这里的用起来是不是很爽?
发一篇测试一下:
代码
<?php
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
if (file_exists('./install/install.php')) {
// Start installation if the file "install.php" exists in the directory "install"
require'./install/install.php';
} else {
// Define base path obtainable throughout the whole application
defined('BASE_PATH')
||define('BASE_PATH',realpath(dirname(__FILE__)));
// Define path to application directory
defined('APPLICATION_PATH')
||define('APPLICATION_PATH', BASE_PATH .'/application');
// Define application environment
defined('APPLICATION_ENV')
||define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ?getenv('APPLICATION_ENV') :'production'));
// Set include path to Zend (and other) libraries
set_include_path(BASE_PATH .'/library'.
PATH_SEPARATOR . APPLICATION_PATH .'/models'.
PATH_SEPARATOR .get_include_path() .
PATH_SEPARATOR .'.'
);
// Require Zend_Application
require_once'Zend/Application.php';
// Create application
$application=new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH .'/configs/application.ini'
# APPLICATION_PATH . '/data/config.xml'
);
// Bootstrap, and run application
$application->bootstrap()
->run();
#Zend_Debug::dump($application);
}
?>
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
if (file_exists('./install/install.php')) {
// Start installation if the file "install.php" exists in the directory "install"
require'./install/install.php';
} else {
// Define base path obtainable throughout the whole application
defined('BASE_PATH')
||define('BASE_PATH',realpath(dirname(__FILE__)));
// Define path to application directory
defined('APPLICATION_PATH')
||define('APPLICATION_PATH', BASE_PATH .'/application');
// Define application environment
defined('APPLICATION_ENV')
||define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ?getenv('APPLICATION_ENV') :'production'));
// Set include path to Zend (and other) libraries
set_include_path(BASE_PATH .'/library'.
PATH_SEPARATOR . APPLICATION_PATH .'/models'.
PATH_SEPARATOR .get_include_path() .
PATH_SEPARATOR .'.'
);
// Require Zend_Application
require_once'Zend/Application.php';
// Create application
$application=new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH .'/configs/application.ini'
# APPLICATION_PATH . '/data/config.xml'
);
// Bootstrap, and run application
$application->bootstrap()
->run();
#Zend_Debug::dump($application);
}
?>
<?php
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);
if (file_exists('./install/install.php')) {
// Start installation if the file "install.php" exists in the directory "install"
require './install/install.php';
} else {
// Define base path obtainable throughout the whole application
defined('BASE_PATH')
|| define('BASE_PATH', realpath(dirname(__FILE__)));
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', BASE_PATH . '/application');
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
// Set include path to Zend (and other) libraries
set_include_path(BASE_PATH . '/library' .
PATH_SEPARATOR . APPLICATION_PATH . '/models' .
PATH_SEPARATOR . get_include_path() .
PATH_SEPARATOR . '.'
);
// Require Zend_Application
require_once 'Zend/Application.php';
// Create application
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
# APPLICATION_PATH . '/data/config.xml'
);
// Bootstrap, and run application
$application->bootstrap()
->run();
#Zend_Debug::dump($application);
}
?>

浙公网安备 33010602011771号