新人做網(wǎng)站求幫助
問題描述
用PHPstudy最新版8.1版用織夢(mèng)建網(wǎng)站出現(xiàn)了
<?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();}//自動(dòng)生成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');}?>
百度說是環(huán)境沒安好但不知道那沒安好求大佬指點(diǎn)謝謝
問題解答
回答1:新人建網(wǎng)站,用云幫手就可以了,云幫手自帶一鍵源碼部署功能,可一鍵部署各種程序,操作簡(jiǎn)單,登陸云幫手管理面板進(jìn)入站點(diǎn)管理頁,點(diǎn)擊源碼部署,在這可以一鍵快速部署包括 WordPress 在內(nèi)的諸多 CMS 、論壇、博客等。
回答2:不我按照教程蔣織夢(mèng)放在根目錄www然后輸入本地地址localhost的或127.0.0.1進(jìn)的回答3:你是說是直接在瀏覽器中看到了php源碼嗎?
你是用url訪問項(xiàng)目的嗎?
相關(guān)文章:
1. python - 有什么好的可以收集貨幣基金的資源?2. css3 - jquery div 翻轉(zhuǎn)?3. docker容器呢SSH為什么連不通呢?4. docker鏡像push報(bào)錯(cuò)5. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.6. docker start -a dockername 老是卡住,什么情況?7. docker網(wǎng)絡(luò)端口映射,沒有方便點(diǎn)的操作方法么?8. MySQL數(shù)據(jù)庫(kù)中文亂碼的原因9. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問題10. golang - 用IDE看docker源碼時(shí)的小問題
