L
Lovely Angel
Hi To All!
First of all sorry that I didnt post any code and even didnt reply to
any post.
The code is here:
<%
Dim rdset
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath("../data/data.mdb")
%>
This is the structure of my files
www - rootfolder, where all main files go
www/back - where all admin files go
www/data - where mdb file is stored
www/images - where image files are stored
Now this code is for file in www/back folder.
There were two options, to get all things right.
1. Use Absolute Path : that would have solved my problem for databse,
but then there was scripts in back folder which were putting the text
data in the database(www/data) and from the forms submitted picked up
the image files to be stored in (www/images).
Now if there would have been one or two scripts it was ok, I had many
scripts for different modules.
(Bad programming on my side. Learnt something from this that I should
have another string common to all scripts which tells them where to
upload the image files)
2. Ask My Service Provider : Now there was this catch, I didnt have the
direct access with service provider. As I was just asked to build the
application and upload to the server. So I took this option out fr my
initial post.
Though the good news is, after few emails up the hierarchy of people, I
got the service provider to Enable The Parent Path.
And the comment I get from him is: "I still think you should not use
relative paths, but the absolute paths"
I dont know why he said that. Any comments on that.
Thanks to all who replied.
Love
Lovely
__________________________________
First of all sorry that I didnt post any code and even didnt reply to
any post.
The code is here:
<%
Dim rdset
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath("../data/data.mdb")
%>
This is the structure of my files
www - rootfolder, where all main files go
www/back - where all admin files go
www/data - where mdb file is stored
www/images - where image files are stored
Now this code is for file in www/back folder.
There were two options, to get all things right.
1. Use Absolute Path : that would have solved my problem for databse,
but then there was scripts in back folder which were putting the text
data in the database(www/data) and from the forms submitted picked up
the image files to be stored in (www/images).
Now if there would have been one or two scripts it was ok, I had many
scripts for different modules.
(Bad programming on my side. Learnt something from this that I should
have another string common to all scripts which tells them where to
upload the image files)
2. Ask My Service Provider : Now there was this catch, I didnt have the
direct access with service provider. As I was just asked to build the
application and upload to the server. So I took this option out fr my
initial post.
Though the good news is, after few emails up the hierarchy of people, I
got the service provider to Enable The Parent Path.
And the comment I get from him is: "I still think you should not use
relative paths, but the absolute paths"
I dont know why he said that. Any comments on that.
Thanks to all who replied.
Love
Lovely
__________________________________