Newbie looking for help building a website
85266565
85266565 2020-02-01 10:16:30
0
5
1314

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

85266565
85266565

reply all(3)
cloudmam

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.

85266565

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 Have you installed the DreamWeaver backend?
    sordidez、 author 2020-02-02 13:14:39
  • reply 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 author 2020-02-03 15:20:09
Peter-Zhu

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

Did you use the url to access the project?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!