For a guide to the choosing ASP or PHP, click here
Home >> Text Files >> Get the Size of a File This code sample shows how to retrieve the size of a file, in bytes
<% ' declare variables dim fso, file, ourFile, ourFileSize ' specify a filename ourFile = "filename.txt" ' get the file size Set fso = Server.CreateObject("Scripting.FileSystemObject") Set file = fso.GetFile(ourFile) ourFileSize = file.Size ' clean up our variables Set file = nothing Set fso = nothing ' ourFileSize now holds the file size ' of ourFile, in bytes %> What is ASP?
What is PHP?