HTMLGoodies
The ultimate html resource
Earthweb.com


About the Double-Underlined Links



Search Clipart.com:



internet.commerce
Compare Prices
Logo Design Custom
Promote Your Website
Corporate Awards
Compare Prices
Holiday Gift Ideas
Car Donations
Shop Online
Send Text Messages
Dental Insurance
Computer Deals
Career Education
Online Universities
SMS Gateway

HTML Goodies : Beyond HTML : Webmaster Tips: SSI: File Returns

 Silverlight 2 SDK for Visual Studio 2008
This package is an add-on to the RTM release of Visual Studio 2008 to provide tooling for Microsoft Silverlight 2 Beta 1. It provides a Silverlight project system for developing Silverlight applications using C# or Visual Basic. »
 
 Article: What Does it Take to Build the Best RIA?
With the proliferation of Rich Interactive Application (RIA) platform choices out there, you no longer have to take a one-size-fits-all approach to developing your next RIA application. Knowing the strengths (and weaknesses) of each platform can help you to decide the best RIA for your next application. »
 
 Expression Blend 2.5 Preview
Use Expression Blend 2.5 to create and modify managed Silverlight 2-based applications. Expression Blend for Silverlight 2 includes all of the features in Expression Blend 2 but has not reached the quality level of Expression Blend 2 for WPF or Silverlight 1 development. »
 
 The Hottest Mobile Platform Meets the Hottest RIA Platform
With the Symbian OS now supporting Microsoft Silverlight, mobile developers can bring new and exciting capabilities to handsets all over the globe. Find out why developers now need to make mobile devices a core part of their RIA development strategy. »
 
 Article: Leveraging Your Flash Development with Silverlight
You're not giving up Flash any time soon (and we don't blame you.) But if you could get your Flash application working in Silverlight, why wouldn't you? We show you the tools and techniques required to have your rockin' Flash application rolled for Silverlight. »
 

HTML GOODIES TO GO NEWSLETTER


Other Related Newsletters

Trend Micro InterScan Trial – Block Spam & Viruses Today: Trend Micro’s hosted email security solution blocks spam, viruses, phishing & other email threats before they reach your network. Learn more.

SSI: File Returns


By Joe Burns

Use these to jump around or read it all...
[The Echo Command]
[The Flastmod Command]
[The Fsize Command]

This is the third in a series of Server Side Include (SSI) tutorials. This tutorial will not delve into what SSI actually is or how it works, so you may want to read the original first. There you'll find a little script to test your server and information on how to use the Include command to include other documents in your current document. Plus, you'll be much more prepared for this tutorial.


The Echo Command

Really smart HTML Goodies readers will remember this command from the SSI Date and Times tutorial.

In that tutorial we used the echo command in tandem with the "timefmt" argument to return dates and times. Here, I want to show you four more arguments that go along with the echo command.

The first stands apart from the other three so I'll use it to show you the format:

<!--#echo var="DATE_GMT" -->

The DATE_GMT value returns Greenwich Mean Time from the server. That basically stands alone. The next three are used to return information about the current document (the document the command is sitting on).

<!--#echo var="Document_Name" -->
Returns the name of the document.

<!--#echo var="Document_URI" -->
Returns the path to the document plus its name.

<!--#echo var="Last_Modified" -->
Returns when the document was last posted to the server.

Just plop the commands onto the page where you want them. That's easy enough. Moving along...


The Flastmod Command

The flastmod command is created by smooshing together the text "file last modified."

This may sound much the same as the echo var="Last_Modified" above. It is, but with one major difference: The echo command only deals with the document it is sitting on, while the flastmod command will allow you to return data from any file. Here's the format:

<!--#flastmod file="page.html" -->

The argument is "file" and is pointing at the file to describe. If you want to point to a file sitting somewhere other than the current directory, just put in the full path:

<!--#flastmod file="/dog/tree/page.html" -->

The only downfall I've found is trying to attach to a file on another server. No good. The include should be on the same server.


The Fsize Command

Fsize means file size. The command works the same way as the flastmod, allowing you to attach it to any file on the server following this format:

<!--#fsize file="page.html" -->

The command returns the size of the file you point it toward. Try it with both HTML and image files.

That's That

Enjoy the includes. Hope you can find a good use for them.

 

Enjoy!

 

[The Echo Command]
[The Flastmod Command]
[The Fsize Command]

Tools:
Add htmlgoodies.com to your favorites
Add htmlgoodies.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed

IT Management Networking & Communications Web Development Hardware & Systems Software Development Earthwebnews.com



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Windows Server 2008
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES