 |
|
ublog ที่ให้ดาว์นโหลดนะเออเรอนะครับ เวลาไปลงในโฮสฟรี มีเพื่อนคนไหนใช้ได้บ้างครับ |
|
 |
|
|
 |
 |
|
Error ว่าอะไรครับ เผื่อจะช่วยได้ครับผม
|
 |
 |
 |
 |
Date :
5 ธ.ค. 2548 18:47:56 |
By :
@W_IN |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ครับผม
เค้าบอกว่าเกี่ยวกับเรื่อง path ครับ
'apertura connessione al db
Set adoCon = Server.CreateObject("ADODB.Connection")
strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("mdb-database/blog.mdb")
adoCon.Open strCon
' definizione parametri upload immagini
kinkoffile = "jpg,gif,bmp,png"
maxsizefile = 50000 ' 50 kb
'Per conoscere percorso fisico della cartella di upload basta
' eseguire una pagina asp con il seguente codice:
'Response.Write "Path: " & Server.MapPath("/redtor/public/images_upload/")
StrPath = "d:\a\redtor\public\images_upload\"
StrPathShort = "/redtor/public/images_upload/"
PagesPerBlock = 10
ช่วยดู path ให้ด้วยนะครับไม่ทราบว่าถูกหรือเปล่าวครับ
ถ้าถูกมันยังเออเรอนะครับ ผมใช้ domaindlx ครับผม
อ้างอิง path ที่ได้มา
http://a.domaindlx.com/redtor/public/images_upload/test.asp
ดูให้หน่อยนะครับติดมาหลายวันแล้วครับ
ลองเทสดูได้ครับ
http://a.domaindlx.com/redtor
ตรง ad newblog นะครับ
user admin
password admin
มันขึ้นว่า
The page cannot be displayed ครับ 
|
 |
 |
 |
 |
Date :
6 ธ.ค. 2548 08:17:14 |
By :
uboncyber |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/redtor/public/db/db.mdb")
น่าจะต้องไปเริ่มต้นที่ Path Root ก่อนนะครับ แล้วค่อยไล่มายัง Level ต่อ ๆ ไป
|
 |
 |
 |
 |
Date :
6 ธ.ค. 2548 08:38:15 |
By :
@W_IN |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตรงส่วน db นั้นสามารถบันทึกได้ปกติครับ แต่ผมไม่ทราบว่า เช่น submit ไปแล้วแต่ว่า เออเรอ พอไปเปิดดูข้อมูล ข้อมูลก็อับเดทครับ เพียงแต่ว่าตอนsubmit แล้ว error ทั้งๆที่ใช้ได้ปกติ ครับติดตรงนี้ครับ ช่วยดูตรงนี้ให้ผมด้วยครับ ตรง
& Server.MapPath("/redtor/public/images_upload/")
StrPath = "d:\a\redtor\public\images_upload\"
StrPathShort = "/redtor/public/images_upload/"
ตามค่าตรงนี้ครับ
http://a.domaindlx.com/redtor/public/images_upload/test.asp เคารพ
|
 |
 |
 |
 |
Date :
6 ธ.ค. 2548 10:04:36 |
By :
uboncyber |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แก้ตามแล้วครับ เวลาอัลโหลดรูปแล้วเออเรอครับ เกี่ยวกับ iis version หรือเปล่าว ยังไม่หายเลยครับเป็นที่โฮสหรือเปล่าวครับ
หรือไม่ช่วยแปลนี้ให้หน่อยครับ เผื่อจะทราบ ผมก็ไม่ทราบเหมือนกัน
Each file on a Web server has two ways of being accessed - through a virtual path and through a physical path. The virtual path is the path one would enter into their browser's Address bar, for example:
http://www.yourserver.com/someDirectory/someFile.asp
The bold part of the URL above is referred to as the virtual path. The physical path is the actual drive, directory, and filename of a particular file on the Web server. For example, on your computer, if you run Windows 9X, your Win.ini file's physical path is C:\WINDOWS\WIN.INI (assuming you installed Windows on your C: drive).
You can obtain the virtual path of a particular ASP page by using the Request.ServerVariables collection.
Code:
Response.Write Request.ServerVariables("PATH_INFO")
will output the virtual path of the ASP page it is entered into.
"How do we translate a virtual path into a physical path?" The answer is to use Server.MapPath, a function that takes one argument, a virtual path, and returns the corresponding physical path.
If you want to obtain the physical path of the executed ASP page, you could use the PATH_INFO ServerVariable in conjunction with Server.MapPath, like so:
Code:
Response.Write Server.MapPath(Request.ServerVariables("PATH_INFO"))
HOW TO RESOLVE THE UPLOAD IMAGE ERROR?
Create a file ( i.e. test.asp ) with only this code ( use a editor like Notepad ) :
Code:
<%
Dim StrPathShort ' virtual path
Dim StrPath ' physical path
StrPathShort = Request.ServerVariables("PATH_INFO")
StrPath = Server.MapPath(Request.ServerVariables("PATH_INFO"))
Response.Write ("StrPath = " & StrPath & "<br><br>")
Response.Write ("StrPathShort = " & StrPathShort & "")
%>
Once you have finished, save the test.asp file and upload it through FTP to your webspace inside your image upload directory ( i.e. images_upload).
Run the file test.asp in your browser (that is go to the url http://www.yourdomain.com/images_upload/test.asp ) .
Now change the "StrPath and StrPathShort" values, in common.asp file, with the results of the test.asp file [ without the final part: test.asp ].
If the error persists then you will need to check and if necessary change the permissions on the IIS server.
That's all.
Bye
|
 |
 |
 |
 |
Date :
6 ธ.ค. 2548 10:33:06 |
By :
uboncyber |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|