FS Problem...!
Hej !Jeg springer lige alle forklaringerne over...:o)
Min source:
-----------
<%@ LANGUAGE="VBSCRIPT"%>
<%OPTION EXPLICIT%>
<%Response.Buffer = True%>
<!-- #INCLUDE FILE="config.asp" -->
<!-- #INCLUDE FILE="adovbs.inc" -->
<%
Set objConn = Server.CreateObject ("ADODB.Connection")
Set objRec = Server.CreateObject ("ADODB.Recordset")
Set objRec2 = Server.CreateObject ("ADODB.Recordset")
objConn.Open strconnect
objRec.Open "cats", objConn, adOpenForwardOnly, adLockReadOnly, adCmdTable
objRec2.Open "links", objConn, adOpenStatic, adLockReadOnly, adCmdTable
%>
<html>
<head>
<title><%=LSTitle%></title>
</head>
<body background="../../images/baggrnd.jpg" text="#FFFFFF">
<html><!-- #BeginTemplate "/Templates/default_temp.dwt" -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>Velkommen til Eagle Group Design - Bestilling</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.text { font-family: Verdana; font-size: 10pt; color: #000000}
.headline { font-family: Verdana; font-size: 14pt; font-weight: bold}
.menutext { font-family: Verdana; font-size: 10pt }
hr.hvid { color: #FF9800}
hr.menu { color: #FFFFFF}
a:link { text-decoration: underline; color: #FF9800}
a:visited { color: #FF9800; text-decoration: underline}
a:active { color: #FF9800; text-decoration: none}
a:hover { color: #000000; text-decoration: underline; background-color: #FF9800}
-->
</style></head>
<body bgcolor="#000000" text="#FF9900" onload="window.status='©1999 By EGDesign'">
<div align="center"><span class="headline">Velkommen til Eagle Group Design<br>
- Din Webpublisher -</span></div>
<br>
<br>
<table width="836" border="1" align="center" bordercolor="#FFFFFF" height="500" cellspacing="5">
<tr valign="middle">
<td class="menutext" height="8" bgcolor="#000000" width="153">
<div align="left"><img src="../gfx/egdesign.gif" width="150" height="75"></div>
</td>
<td class="menutext" height="8" bgcolor="#000000" width="656"> </td>
</tr>
<tr>
<td width="153" bgcolor="#FF9800" valign="top" height="6" class="menutext">
<div align="center"><b><font color="#000000">Menu</font></b></div>
</td>
<td width="656" rowspan="6" valign="top" bgcolor="#FFFFFF">
<!-- #BeginEditable "maintxt" -->
<font color="#FFFFFF"><%Response.Write LSPageBody1%>
<p align="center">
<!--#include file="displaynavigation.asp"--><br><br>
<!--#include file="displaycats.asp"-->
<!--#include file="displaylinks.asp"--><br>
</font>
<%=PrintCredit%>
</body>
</html>
<%
'Tidy up
objRec.Close
objRec2.Close
objConn.Close
Set objRec = Nothing
Set objRec2 = Nothing
Set objConn = Nothing
%>
<!-- #EndEditable -->
</td>
</tr>
<tr>
<td width="153" valign="top" height="100" class="menutext">
<div align="center"><a href="default.asp">Forsiden</a></div>
<hr size="1" width="100%" class="menu">
<div align="center"><a href="profil.asp">Profil</a></div>
<hr size="1" width="100%" class="menu">
<div align="center"><a href="kontakt.asp">Kontakt</a></div>
<hr size="1" width="100%" class="menu">
<div align="center"><a href="webhotel.asp">Webhotel</a></div>
<hr size="1" width="100%" class="menu">
<div align="center"><a href="bestilling.asp">Bestilling</a></div>
<hr size="1" width="100%" class="menu">
<div align="center"><a href="whois.asp">Domæne tester</a></div>
<hr size="1" width="100%" class="menu">
<div align="center"><a href="download.asp">Download</a></div>
<hr size="1" width="100%" class="menu">
<div align="center"><a href="links.asp">Links</a></div>
</td>
</tr>
<tr>
<td width="153" bgcolor="#FF9800" valign="top" class="menutext">
<div align="center"><b><b><font color="#000000">Statistik</font></b></b></div>
</td>
</tr>
<tr>
<td width="153" valign="top" class="menutext">
<div align="center">Antal besøgende:<br>
<%
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile("c:\inetpub\wwwroot\egdesign\count\count.txt")
ct = Clng(a.ReadLine)
if Session("ct") = "" then
Session("ct") = ct
ct = ct + 1
a.close
Set a = fs.CreateTextFile("c:\inetpub\wwwroot\egdesign\count\count.txt", True)
a.WriteLine(ct)
end if
a.Close
%> <b><% =ct %></b></div>
<hr size="1" width="75%" class="hvid">
<div align="center">Brugere online:<br>
<b><%= Application("ActiveUsers") %></b></div>
<hr class="hvid" width="75%" size="1">
<div align="center">Sidst opdateret:<br>
<%
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(request.servervariables("PATH_TRANSLATED"))
s = s & "" & f.DateLastModified
response.write("<b>")
response.write(""&day(s)&".")
response.write(" ")
if month(s) = 1 then response.write("Januar")
if month(s) = 2 then response.write("Februar")
if month(s) = 3 then response.write("Marts")
if month(s) = 4 then response.write("April")
if month(s) = 5 then response.write("Maj")
if month(s) = 6 then response.write("Juni")
if month(s) = 7 then response.write("Juli")
if month(s) = 8 then response.write("August")
if month(s) = 9 then response.write("September")
if month(s) = 10 then response.write("Oktober")
if month(s) = 11 then response.write("November")
if month(s) = 12 then response.write("December")
response.write(" ")
response.write(year(s))
response.write("</b>")
%></div>
</td>
</tr>
<tr> </tr>
<tr> </tr>
</table>
<div align="center"> <a href="mailto:dn@egdesign.dk" class="menutext">Webmaster</a><br>
<br>
</div>
<div align="center"><a target='_blank' href='http://www.chart.dk/ref.asp?id=8371'><img alt='chart.dk' border='0' src='http://www.chart.dk/chart.asp?id=8371'></a><br>
<font face="Verdana" size="1" color="#FFFFFF">1024*768 true color 24 bit</font>
</div>
</body>
<!-- #EndTemplate --></html>
------
FEJL MEDDELSE:
--------------
Antal besøgende:
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'fs'
/egdesign/links/Default.asp, line 120
----
Jeg kan ikke lige sem mig ud af det...!
Help ?!
<//morpheus\\>
