新人做網站求幫助
問題描述
用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訪問項目的嗎?
相關文章:
1. golang - 用IDE看docker源碼時的小問題2. 我何時應該在Java中使用JFrame.add(component)和JFrame.getContentPane()。add(component)3. phpstudy8.1沒集成mysql-front4. java - 如何點擊按鈕,重新運行(我是初學者)?5. 運行python程序時出現“應用程序發生異常”的內存錯誤?6. html - css氣泡,實現“倒三角(不知道算不算三角了)”可透明的。7. 利用IPMI遠程安裝centos報錯!8. 前端 - @media query 使用出現的問題?9. html5和Flash對抗是什么情況?10. javascript - 請指條明路,angular的$event,在select中卻是undefined?

網公網安備