- 제 목 asp는 안됩니다
- 작성자 남강우 등록일 2009-07-25/13:45 조회수 1352
제 홈페이지는 asp가 지원이 안되는것 같은데
php 에서만 되는건 않되나요?
도메인/디렉토리/setup.asp 여니까 (권한설정도 다 했습니다
그런데 첨에는 마우것도 안뜨다가 [새로고침] 클릭하니까..
--------------------------------------
<%
On Error Resume Next
filePath = server.mappath("data") & "\writeTemp.txt"
Set fs = Server.CreateObject("Scripting.FileSystemObject")
fs.CreateTextFile filePath ,true
%>
<html>
<head>
<title>Data폴더에 대한 권한이 없습니다.</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
if err.number <> 0 Then
response.write "<table width='100%' height='100%'>"& vbCrLf &_
"<tr>"& vbCrLf &_
"<td align='center'><img src='jsource/setup/images/datacheck.gif' width='526' height='531' border='0'>"& vbCrLf &_
"</tr>"& vbCrLf &_
"</table>"
Else
if fs.fileexists(filepath) Then fs.deletefile(filepath)
response.redirect "Jsource/setup/setup1.asp"
end if
%>
</body>
</html>
-----------------------------------------------------------
텍스트로 이렇게 나옵니다 뭐가 문제인지 알려주세여~
php 에서만 되는건 않되나요?
도메인/디렉토리/setup.asp 여니까 (권한설정도 다 했습니다
그런데 첨에는 마우것도 안뜨다가 [새로고침] 클릭하니까..
--------------------------------------
<%
On Error Resume Next
filePath = server.mappath("data") & "\writeTemp.txt"
Set fs = Server.CreateObject("Scripting.FileSystemObject")
fs.CreateTextFile filePath ,true
%>
<html>
<head>
<title>Data폴더에 대한 권한이 없습니다.</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
if err.number <> 0 Then
response.write "<table width='100%' height='100%'>"& vbCrLf &_
"<tr>"& vbCrLf &_
"<td align='center'><img src='jsource/setup/images/datacheck.gif' width='526' height='531' border='0'>"& vbCrLf &_
"</tr>"& vbCrLf &_
"</table>"
Else
if fs.fileexists(filepath) Then fs.deletefile(filepath)
response.redirect "Jsource/setup/setup1.asp"
end if
%>
</body>
</html>
-----------------------------------------------------------
텍스트로 이렇게 나옵니다 뭐가 문제인지 알려주세여~