PDA

View Full Version : Gloabalasa


cybermaster
13-07-2002, 18:43
Gdje inace na serveru trebam postaviti datoteku globalasa??
:cool:
:o
:p
:mad:
:)

zweistein
14-07-2002, 13:45
Originally posted by cybermaster
Gdje inace na serveru trebam postaviti datoteku globalasa??


AFAIK, to treba ici u root direktorij sitea.

cybermaster
14-07-2002, 15:30
Hvala puno,moze jos jedno pitanje?!!
U Site news administratoru trebam namjestiti path do database,ona mora biti u mapi DATA,ali neznam gdje bi trebao to podesiti,inace ja sam na averiju ne na brinksteru

evo iz common inc file-gdje treba namjestiti putanju:

'Create database connection

'Create a connection odject
Set adoCon = Server.CreateObject("ADODB.Connection")

'------------- If you are having problems with the script then try using a diffrent driver or DSN by editing the lines below --------------

'Database connection info and driver
strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("news.mdb")

'Database driver info for Brinkster
'strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/USERNAME/db/news.mdb") 'This one is for Brinkster users place your Brinster username where you see USERNAME

'Alternative drivers faster than the basic one above
'strCon = "Provider=Microsoft.Jet.OLEDB.3.51; Data Source=" & Server.MapPath("news.mdb") 'This one is if you convert the database to Access 97
'strCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("news.mdb") 'This one is for Access 2000/2002

Nadam se da ce mi Zweistein moci i ovaj put pomoci.

nidzho
14-07-2002, 15:53
Originally posted by cybermaster
U Site news administratoru trebam namjestiti path do database,ona mora biti u mapi DATA

Mislis na direktorij (folder) DATA?
Originally posted by cybermaster
'Database connection info and driver
strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("news.mdb")

Server.MapPath("DATA\news.mdb")
ili
Server.MapPath("..\DATA\news.mdb")

cybermaster
14-07-2002, 16:00
da ali koje je od to dvoje??

avetma
14-07-2002, 16:39
-news.mdb kopiraj u DATA

-Ako ti je ovo taj dio...


'Create database connection

'Create a connection odject
Set adoCon = Server.CreateObject("ADODB.Connection")

'------------- If you are having problems with the script then try using a diffrent driver or DSN by editing the lines below --------------

'Database connection info and driver
strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("data\news.mdb")

'Database driver info for Brinkster
'strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/USERNAME/db/news.mdb") 'This one is for Brinkster users place your Brinster username where you see USERNAME

'Alternative drivers faster than the basic one above
'strCon = "Provider=Microsoft.Jet.OLEDB.3.51; Data Source=" & Server.MapPath("news.mdb") 'This one is if you convert the database to Access 97
'strCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("news.mdb") 'This one is for Access 2000/2002

-Pogledaj redak 14 ovoga posta:
"Server.MapPath("data\news.mdb")" (bez vanjskih navodnika)

-Znači da bi ti to otprilike ovako trebalo izgledati:

'Create database connection

'Create a connection odject
Set adoCon = Server.CreateObject("ADODB.Connection")

'------------- If you are having problems with the script then try using a diffrent driver or DSN by editing the lines below --------------

'Database connection info and driver
strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("data\news.mdb")

'Database driver info for Brinkster
'strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/USERNAME/db/news.mdb") 'This one is for Brinkster users place your Brinster username where you see USERNAME

'Alternative drivers faster than the basic one above
'strCon = "Provider=Microsoft.Jet.OLEDB.3.51; Data Source=" & Server.MapPath("news.mdb") 'This one is if you convert the database to Access 97
'strCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("news.mdb") 'This one is for Access 2000/2002



Nadam se da si skuzio,ako imas jos nekaj onda ovdje pitaj!

cybermaster
14-07-2002, 16:42
Thanks very much

kezo
15-07-2002, 09:32
Originally posted by cybermaster
Gdje inace na serveru trebam postaviti datoteku globalasa??
:cool:
:o
:p
:mad:
:)

možeš u svaki direktorij staviti drugu globalasu, IIS uvijek vuče najbližu, pa ako nema ide i traži do root-a