您的位置:首頁技術文章
文章詳情頁

新人做網站求幫助

瀏覽:165日期:2022-06-06 15:28:49

問題描述

用PHPstudy最新版8.1版用織夢建網站出現了

<?php/** * @version$Id: index.php 1 9:23 2010-11-11 tianya $ * @packageDedeCMS.Site * @copyright Copyright (c) 2007 - 2010, DesDev, Inc. * @licensehttp://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();}//自動生成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) {$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');}?>

百度說是環境沒安好但不知道那沒安好求大佬指點謝謝

問題解答

回答1:

新人建網站,用云幫手就可以了,云幫手自帶一鍵源碼部署功能,可一鍵部署各種程序,操作簡單,登陸云幫手管理面板進入站點管理頁,點擊源碼部署,在這可以一鍵快速部署包括 WordPress 在內的諸多 CMS 、論壇、博客等。

回答2:不我按照教程蔣織夢放在根目錄www然后輸入本地地址localhost的或127.0.0.1進的回答3:

你是說是直接在瀏覽器中看到了php源碼嗎?

你是用url訪問項目的嗎?

相關文章:
国产综合久久一区二区三区