新人做網站求幫助
問題描述
用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. 在html文件的目錄下輸入代碼按回車后顯示這個,哪位大佬幫幫我 呀2. windows7 ping不通虛擬機VMware上的linux(ubuntu)的ip3. node.js - nodejs開發中常用的連接mysql的庫4. 網頁爬蟲 - python 爬取網站 并解析非json內容5. mysql - jdbc的問題6. python - 數據與循環次數對應不上7. 視頻文件不能播放,怎么辦?8. mysql - 分庫分表、分區、讀寫分離 這些都是用在什么場景下 ,會帶來哪些效率或者其他方面的好處9. python - 我在使用pip install -r requirements.txt下載時,為什么部分能下載,部分不能下載10. mysql - 如何減少使用或者不用LEFT JOIN查詢?
