新人做網(wǎng)站求幫助
問題描述
用PHPstudy最新版8.1版用織夢建網(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)站,用云幫手就可以了,云幫手自帶一鍵源碼部署功能,可一鍵部署各種程序,操作簡單,登陸云幫手管理面板進(jìn)入站點(diǎn)管理頁,點(diǎn)擊源碼部署,在這可以一鍵快速部署包括 WordPress 在內(nèi)的諸多 CMS 、論壇、博客等。
回答2:不我按照教程蔣織夢放在根目錄www然后輸入本地地址localhost的或127.0.0.1進(jìn)的回答3:你是說是直接在瀏覽器中看到了php源碼嗎?
你是用url訪問項(xiàng)目的嗎?
相關(guān)文章:
1. python - 數(shù)據(jù)與循環(huán)次數(shù)對應(yīng)不上2. mysql - 把一個(gè)表中的數(shù)據(jù)count更新到另一個(gè)表里?3. 請教使用PDO連接MSSQL數(shù)據(jù)庫插入是亂碼問題?4. mysql - 分庫分表、分區(qū)、讀寫分離 這些都是用在什么場景下 ,會(huì)帶來哪些效率或者其他方面的好處5. Python爬蟲如何爬取span和span中間的內(nèi)容并分別存入字典里?6. 視頻文件不能播放,怎么辦?7. mysql 查詢身份證號字段值有效的數(shù)據(jù)8. python - 爬蟲模擬登錄后,爬取csdn后臺文章列表遇到的問題9. node.js - nodejs開發(fā)中常用的連接mysql的庫10. 黑客 - Python模塊安全權(quán)限
