Use the latest version of PHPstudy, version 8.1, to build a website using DreamWeaver.
<?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(!file_exists(dirname(__FILE__). '/data/common.inc.php'))
{
header('Location:install/index.php');
exit();
}
//Automatically generated HTML version
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)
{
$pv->SaveToHtml(dirname(__FILE__).'/index.html');
include(dirname(__FILE__).'/index.html');
exit();
} else {
$pv->Display();
exit();
}
}
else
{
header('HTTP/1.1 301 Moved Permanently');
header('Location:index.html');
}
?>
Baidu said that the environment is not safe but I don’t know why it is not safe. Please give me some advice. Thank you
New users can use Cloud Helper to build a website. Cloud Helper comes with a one-click source code deployment function, which can deploy various programs with one click. The operation is simple. Log in to the Cloud Helper management panel to enter the site management page, click Source Code Deployment, and This can quickly deploy many CMS, forums, blogs, etc. including WordPress with one click.
No, I followed Jiang Zhimeng’s tutorial and put it in the root directory www and then entered the local address localhost or 127.0.0.1.
Are you saying that you saw the php source code directly in the browser?
Did you use the url to access the project?