[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
apache SSI vs wml
- From: Viorel Anghel <nospam@thanx>
- Date: Tue, 26 May 1998 11:06:18 -0400
Apache SSI vs WML -- my 2 cents tip ;-)
One of the main reasons for which I use wml is that i can replace the apache
server-side-include with WML constructs, reducing the server loading (the
documents are "compiled" by WML, not "interpreted" by httpd).
- including files like headers and footers are clear (#include etc)
- LAST_MODIFIED date is <get-var WML_GEN_ISOTIME>
- DOCUMENT_URI is <info:document-url>
- flastmod (last modified for another file) and
fsize (the size for a file) can be simulated like this:
------------ cut here ;-) -------------------
File <a href="SOME-FILE.html">SOME FILE</a>
was last modified on
<:
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks)
= stat("SOME-FILE.html");
$mod = localtime($mtime);
print "$mod.\n";
print "and has $size bytes.\n";
:>
---------------------------------------------
Best regards,
--
___
<o-o> Viorel ANGHEL <vang AT leader DOT ro>
[`-'] http://www.leader.ro/~vang/
-"-"-
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com