PHP 에서
$strfile = "test.exe"
filesize($strfile)
PERL 에서:
$ForFileSize = "test.exe";
$FileSize = -s $ForFileSize;
ASP 에서:
<%
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set myfile = fs.GetFile("c:\test.exe")
%>
<HTML>
<BODY>
<br><center><font face="돋움" size="2">
file size : <%=myfile.size%> bytes<br>
</font></center>
</BODY>
</HTML>