Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Printing page stats

May 8, 2000

fsize

fsize prints the size of the specified file. The format in which the command is displayed can be specified by using fsize in conjunction with the config sizefmt parameter. Fsize is similar to the include command in that it accepts both a file or virtual parameter. (Remember... virtual means you can print the date of a file located anywhere on the server, not just the file you are currently working on.
<!--#fsize file="index_working.html" -->

flastmod

flastmod prints the date that a specified file was last modified. The format in which the date is displayed can be specified by using flastmod in conjunction with the config timefmt parameter. Flastmod is similar to the include command in that it accepts both a file or virtual parameter. (Remember... virtual means you can print the date of a file located anywhere on the server, not just the file you are currently working on.
<!--#config timefmt="%A, the  %d of  %B, in the year  %Y" -->
<!--#flastmod file="file.html" -->


Here's a neat trick for showing last modified dates on all of the links on an index. Simply add the following line with the proper path after each link!

<!--#config timefmt=" %B  %d, %Y" -->
<A HREF="/directory/file.html">File</A>
<!--#flastmod virtual="/directory/file.html" -->
<A HREF="/another_directory/another_file.html">Another File</A>
<!--#flastmod virtual="/another_directory/another_file.html" -->

Displays the following:

File April 19, 2000
Another File January 08, 2000

Looks like a lot of work for two little links, but multiply it by 20 or so and then figure your 20 pages change on a frequent basis. Doesn't take long to see the merits of using flastmod to update the modification dates on that index page.

exec

This command executes a CGI script or a shell command. It must be activated to be used. Valid tags are:

cmd will execute the given string using /bin/sh. The IncludesNOEXEC Option disables this command.

cgi executes a cgi script. The following command would place a counter on a page, providing the counter.pl script resides in the cgi-bin on the server.
<!--#exec cgi="/cgi-bin/counter.pl" -->

That's a pretty quick run-down on Server Side includes and there's a whole new world out there waiting for us in the form of Apache's eXtended Server Side Includes!

Additional Resources:

CGI Environment Variables cont.
Server Side Includes


Up to => Home / Authoring / SSI / Intro




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers