Jump to content


Upload asp file and database


2 replies to this topic

#1 Ahmult

    Young Padawan

  • Members
  • Pip
  • 47 posts

Posted 13 November 2006 - 05:43 AM

If I want to uplaod them by ftp. Once I connect to ftp server, i saw a few folder

.cpanel-datastore

public_ftp

public_html

tmp

www

Do anyone know which one I should put asp, which I should upload Access file (main database)

I dont know too much for server side. If anyone know, could give me a hand? :P

I tried to upload index.asp and other asp to public_html and set the permission to 644.

When I actually type sth www.xxx.com/xx.asp
it says do I want to save file or open it
But I cant see the content from the site.

Edited by Ahmult, 13 November 2006 - 06:21 AM.


#2 Ahmult

    Young Padawan

  • Members
  • Pip
  • 47 posts

Posted 13 November 2006 - 05:50 AM

The following is the homepage index code. Do anyone know how should I suppose to uplod this by ftp? Where should I upload that?

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
session.timeout=30
dim connstr
dim conn
set conn=server.CreateObject("adodb.connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("CHT_data/#CHT_data.mdb")
conn.Open connstr

set rs=server.CreateObject("adodb.recordset")
rs.open "select * from Web_config",conn,1,1

if rs("Lang")="English" then
response.Redirect "../rh/Pageen/index.asp"
end if

if rs("Lang")="Chinese" then
response.Redirect "../rh/Pagecn/index.asp"
end if

rs.close
set rs=nothing
conn.close
set conn=nothing
%>

#3 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 13 November 2006 - 08:03 PM

Always upload your public files to 'public_html'. In this case, if you have any page named 'index.html', or 'index.php', this will be referred as your main page the domain will direct to. I'm not sure about 'index.asp', but I would assume so. If not, do a simple search for using the indexing of the .htaccess file.

The other files are for other purposes, such as storing secured files you never want anyone to view. :(





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users