本人小白想用PHPstudy用织梦建一个网站
但出现了<?php
/**
- @version $Id: index.php 1 9:23 2010-11-11 tianya $
- @package DedeCMS.Site
- @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
- @license http://help.dedecms.com/usersguide/license.html
- @link http://www.dedecms.com
/
if(!fileexists(dirname(FILE).’/data/common.inc.php’))
{
header(‘Location:install/index.php’);
exit();
}
//自动生成HTML版
if(isset($GET[‘upcache’]) || !file_exists(‘index.html’))
{
require_once (dirname(__FILE) . “/include/common.inc.php”);
require_once DEDEINC.”/arc.partview.class.php”;
$GLOBALS[‘_arclistEnv’] = ‘index’;
$row = $dsql->GetOne(“Select From#@__homepageset
“);
$row[‘templet’] = MfTemplet($row[‘templet’]);
$pv = new PartView();
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . “/“ . $row[‘templet’]);
$row[‘showmod’] = isset($row[‘showmod’])? $row[‘showmod’] : 0;
if ($row[‘showmod’] == 1)
{
} else {$pv->SaveToHtml(dirname(__FILE__).'/index.html');
include(dirname(__FILE__).'/index.html');
exit();
}$pv->Display();
exit();
}
else
{
header(‘HTTP/1.1 301 Moved Permanently’);
header(‘Location:index.html’);
}
?>
百度也没查出来