![]() |
![]() |
||
| Tuesday, 06-Jan-2009 13:43:06 PST | |||
Server Side IncludesServer Side Includes are snippets of HTML comments which are used to call up functions enabled on the server Your Homepage is stored on. They allow you to create HTML documents with dynamically modified content. Below is the list of Server Side Includes provided by psnw.com. Simply copy the desired code exactly as it is shown into Your Homepage. The Tags: <!--#echo var="LAST_MODIFIED"--> (This is used to keep track of when an HTML page was last updated or modified.)This is an example of what it looks like on the page: Thursday, 19-Oct-2006 16:02:49 PDT <!--#echo var="DATE_LOCAL"--> (Gives the local date and time information.)This is an example of what it looks like on the page: Tuesday, 06-Jan-2009 13:43:06 PST <!--#echo var="DOCUMENT_NAME"--> (Gives the name of your HTML document.)This is an example of what it looks like on the page: ssi.html <!--#echo var="REMOTE_ADDR"--> (Shows the numeric IP address of the remote host accessing the server.)This is an example of what it looks like on the page: 38.103.63.57 <!--#echo var="REMOTE_HOST"--> (Shows the Internet domain name of the host making the request.)This is an example of what it looks like on the page: (none) <!--#echo var="HTTP_USER_AGENT"--> (Shows the browser type that is being used by the remote host.)This is an example of what it looks like on the page: CCBot/1.0 (+http://www.commoncrawl.org/bot.html) <!--#echo var="SERVER_SOFTWARE"--> (Shows the name and version of the server software answering the request.)This is an example of what it looks like on the page: Apache/2.0.48 (Unix) mod_perl/1.99_12 Perl/v5.8.6 mod_ssl/2.0.48 OpenSSL/0.9.7b PHP/4.3.4 <!--#echo var="SERVER_NAME"--> (Shows the Internet domain of the server.)This is an example of what it looks like on the page: psnw.com <!--#include file="report.txt"--> (This will insert the contents of a file saved as "report.txt" into the HTML page.)You may need to surround this code with a <PRE> tag for best results. The <PRE> tag is used for preformatted text that you don't want changed or reformatted. Like this: This is the contents of report.txt. Because it is called up inside of a "pre" tag. It is being displayed exactly as it is formatted in the text file. Home - About psnw.com - Reseller Program - jobs@psnw.com Technical Support - Customer Service - Home Services - Business Services Terms of Service - Privacy Policy - Contact Us - Refer & Earn - Site Map [ Privacy Policy ] © 2006 ProtoSource Network. 6125 |
|||||