日期:2014-05-17  浏览次数:20428 次

wordpress问题
本地使用wamp搭建的wordpress 首页直接显示代码


<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>



------解决方案--------------------
环境好的吗? phpinfo() ;可以显示吗
------解决方案--------------------
apache没配置application/x-httpd-php