主题:  在自己计算机上好好的,怎么上传后?(在线等)

mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#12003/2/14 21:13:34
我用dreamweaver做的一个bbs,在自己计算机上用的好好的,申请了一个主页空间!上传之后就不能用了,总是显示错误,我的数据库连接文件的内容是这样的,请大家帮助看看!我今晚在线等直到凌晨1点,后天就开学了,我想在开学之前搞掂!请大家帮助,谢谢!



mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#22003/2/14 21:14:41
<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
Dim MM_bbs_STRING
MM_bbs_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=123;Data Source=" & Server.Mappath("\bbs\bbs.mdb")
%>



忧忧

职务:普通成员
等级:1
金币:1.0
发贴:180
注册:2002/7/23 1:32:17
#32003/2/14 21:20:48
能把你的主文件目录结构说一下吗



mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#42003/2/14 21:24:03
能,根目录中的bbs是论坛的所有东西,还需要知道什么?谢谢!



119997735

职务:普通成员
等级:1
金币:0.0
发贴:13
注册:2003/2/8 23:34:57
#52003/2/14 21:25:52
是不是路径出问题呀



mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#62003/2/14 21:26:38
要不,我把ftp帐号密码都告诉你,您帮我分析一下(如果您今晚没有别的事情的话),我知道您肯定是好人,谢谢!



mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#72003/2/14 21:29:54
应该不是,如果是的话,那么怎么在我的计算机上正常呢?
我用server.mappath测了一下,他的目录是E:\asp,而我的是D:\Inetpub\WWWROOT,和这个有关系吗?请访问http://asp.169163.com/mantou/bbs/login.asp,这个文件的源代码是:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "0"
If (Request("MM_Emptyvalue") <> "") Then
Recordset1__MMColParam = Request("MM_Emptyvalue")
End If
%>
<% response.Cookies("name")=""%>
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_bbs_STRING
Recordset1.Source = "SELECT * FROM yonghu WHERE dead = " + Replace(Recordset1__MMColParam, "'", "''") + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0
%>
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("textfield"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization=""
MM_redirectLoginSuccess="default.asp"
MM_redirectLoginFailed="error.htm"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_bbs_STRING
MM_rsUser.Source = "SELECT name, pass"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM yonghu WHERE name='" & Replace(MM_valUsername,"'","''") &"' AND pass='" & Replace(Request.Form("textfield2"),"'","''") & "'" & "AND dead <>1"
MM_rsUser.CursorType = 0
MM_rsUser.CursorLocation = 2
MM_rsUser.LockType = 3
MM_rsUser.Open
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
    Response.Cookies("name")=Request.Form("textfield")
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>


Untitled Document










帐号

免费注册

密码

游客参观








<%
Recordset1.Close()
Set Recordset1 = Nothing
%>



mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#82003/2/14 21:31:55
我看出点问题了!应该是这一句的问题,



mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#92003/2/14 21:35:26
在我的计算机上直接就是根目录,而在他那里,确是mantou目录下,是不是这个原因?
好象也不是!



忧忧

职务:普通成员
等级:1
金币:1.0
发贴:180
注册:2002/7/23 1:32:17
#102003/2/14 21:35:40
快点解决你的问题
58652933加入我在线告诉你~~~



mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#112003/2/14 21:37:48
高手们,有没有时间帮我,请回帖!



忧忧

职务:普通成员
等级:1
金币:1.0
发贴:180
注册:2002/7/23 1:32:17
#122003/2/14 21:38:41
老大你能不能快点~~~



mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#132003/2/14 21:39:04
你是说QQ?我没有!



mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#142003/2/14 21:39:50
我用的是拨号,所以很慢,请原谅!



mantou_5d

职务:普通成员
等级:3
金币:1.0
发贴:437
注册:2002/10/27 0:08:41
#152003/2/14 21:42:04
好了,安装完成,能不能用正在试,好象很慢!