Consider the following script:
<SCRIPT LANGUAGE=VBScript RUNAT = (SERVER)>
Function FileLastMod()
Dim loFs, lsFile, lsPath, loFilem, ldLast
Set loFs = Server.CreateObject(“Scripting.FileSystemObject”)
lsFile = Request.ServerVariables(“SCRIPT_NAME”)
lsPath = Server.MapPath(lsFile)
Set loFile = loFs.GetFile(lsPath)
ldLast = loFile.DateLastModified
Set loFile = Nothing
Set loFs = Nothing
FileLastMod = CStr(FormatDateTime(ldLast, 2))
End Function
</SCRIPT>
Which one of the following corrections needs to be made?
A.
The first line needs to be rewritten as:
<SCRIPT LANGUAGE=VBScript “RUNAT=SERVER”>
B.
The first line needs to be rewritten as:
<SCRIPT LANGUAGE=VBScript RUNAT=’SERVER’>
C.
The first line needs to be rewritten as:
<SCRIPT LANGUAGE=VBScript RUNAT=SERVER>
D.
The first line needs to be rewritten as:
<SCRIPT LANGUAGE=VBScript RUNAT = “SERVER”>