search

Home  >  Q&A  >  body text

Newbie looking for help building a website

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

85266565852665651839 days ago1402

reply all(5)I'll reply

  • cloudmam

    cloudmam2020-05-20 16:58:15

    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.

    reply
    0
  • 85266565

    852665652020-02-02 12:05:18

    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.

    reply
    0
  • sordidez、

    Have you installed the DreamWeaver backend?

    sordidez、 · 2020-02-02 13:14:39
    85266565

    If you haven't reached that step, the first step is stuck. If you can do it normally, the next step should be Read the license agreement

    85266565 · 2020-02-03 15:20:09
  • 天蓬老师

    天蓬老师2020-02-02 12:02:34

    Are you saying that you saw the php source code directly in the browser?

    Did you use the url to access the project?

    reply
    0
  • Cancelreply