手里有一份php的项目 很多php的页面 还有admin css images文件夹 我应该导入到什么软件里面使用?怎么导入

html-css015

手里有一份php的项目 很多php的页面 还有admin css images文件夹 我应该导入到什么软件里面使用?怎么导入,第1张

PHP是一种服务器脚本语言

它必须运行在服务器中

你可以去下载一个阿帕奇、PHP、MYSQL然后,组建起服务器

再挂接你的这个PHP页面

打开浏览器,就可以看到这里面的内容了

=====================

里面的admin是指管理的意思,说明这个文件夹内的文件都是用于后台管理页面,平时浏览不需要它。但要对页面修改时就需要了

css是指里面的文件为整个文件的配置文件,它将起到美化页面的作用

images是图片,这个文件夹中会有很多图片,如果没有,那可能是需要在页面打开后,自己上传

这很明显,你的wordpress/wp-admin目录不能正常解释php文件。

登录页面是wordpress/wp-login.php,可以正常显示。

但登录成功后,转向wordpress/wp-admin/,这个目录不能正确处理php文件,只能把它当做文本文件显示在浏览器中。

如果你在windows里用IIS,建议你把iis下的所有网站和应用程序池都删了,重新建个非托管的应用程序池,建个网站把wp放进去,然后再试试。(这种方法虽然笨,但肯定有效,抱歉没有更好的方法,我对windows不熟悉)。

如果你用的是apache,检查/etc/apache/site-available/下的所有文件,只要保证wp-admin没有在任何文件里被单独设置,那就没问题了。

<html>

<head>

<meta http-equiv="Content-Type" content="text/htmlcharset=gb2312">

<link href="images/Admin_css.css" type=text/css rel=stylesheet>

<link rel="stylesheet" href="../KindEditor/themes/default/default.css" />

<link rel="stylesheet" href="../KindEditor/plugins/code/prettify.css" />

<script charset="utf-8" src="../KindEditor/kindeditor.js"></script>

<script charset="utf-8" src="../KindEditor/lang/zh_CN.js"></script>

<script charset="utf-8" src="../KindEditor/plugins/code/prettify.js"></script>

<script>

KindEditor.ready(function(K) {

var editor = K.create('textarea[name="content"]', {

cssPath : '../KindEditor/plugins/code/prettify.css',

uploadJson : '../KindEditor/upload_json.asp',

allowFileManager : true,

afterCreate : function() {

var self = this

K.ctrl(document, 13, function() {

self.sync()

K('form[name=example]')

[0].submit()

})

K.ctrl(self.edit.doc, 13, function() {

self.sync()

K('form[name=example]')

[0].submit()

})

}

})

prettyPrint()

})

</script>

....中间省略

<tr>

<td height="24" align="right" valign="top">内容:<br>

<td>

<textarea id="content_1" name="content"

style="width:700pxheight:300pxvisibility:hidden"></textarea></td>

</tr>

<tr>

<td height="24" align="right">点 击 数:</td>

<td colspan=4><input name="Hits" type="text" class="textfield" style="WIDTH: 40"

value="<%if Hits="" then response.write ("1") else response.Write(""&Hits&"") end if %>"

maxlength="40">

发布时间:<input class="textfield" name="AddTime" value="<%=now()%>"

type="text"/>

<tr>

<tr>

<td height="30" align="right"></td>

<td valign="bottom"><input name="submitSaveEdit" type="submit" class="button"

id="submitSaveEdit" value="保存" style="WIDTH: 80" ></td>

</tr>

<tr>

<td height="24" align="right"></td>

<td valign="bottom"></td>

</tr>

</table></td>

</tr>

</form>

</table>

</BODY>

</HTML>

<%

sub InfoEdit()

dim Action,rsRepeat,rs,sql,Ecount

Action=request.QueryString("Action")

if Action="SaveEdit" then '保存编辑作品

set rs = server.createobject("adodb.recordset")

if len(trim(request.Form("content")))<1 then

response.write ("<script language=javascript>alert('内容为必填项目!')history.back(-

1)</script>")

response.end

end if

为什么一直提示"内容为必填项目!"

if (!savefile.getParentFile().exists()) {

savefile.getParentFile().mkdirs()

try {

FileUtils.copyFile(imgFile, savefile)

map.put("error", 0)

map.put("url", savefile)

JSONObject json = JSONObject.fromObject(map)

response.getOutputStream().print(json.toString())

} catch (IOException e) {

e.printStackTrace()

}

} else {

try {

FileUtils.copyFile(imgFile, savefile)

map.put("url", savefile)

map.put("error", 0)

JSONObject json = JSONObject.fromObject(map)

System.out.println(json)

response.getOutputStream().print(json.toString())

} catch (IOException e) {

} else {

map.put("error", 1)

map.put("message", "上传失败")

JSONObject json = JSONObject.fromObject(map)

try {

response.getOutputStream().print(json.toString())

} catch {

DeBug运行到JSONObject json = JSONObject.fromObject(map)就会进入DefaultActionInvocation.class,

kindeditor报的错误信息

type Exception report

message There is a cycle in the hierarchy!

description The server encountered an internal error that prevented it from fulfilling this request.

exception

net.sf.json.JSONException: There is a cycle in the hierarchy!