Red Hat NETSCAPE ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Instrukcja Użytkownika Strona 116

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 148
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 115
UsingServer-SideHTMLCommands
116 Netscape Enterprise Server ProgrammersGuide April 2002 (Draft)
In Enterprise Server 6.1, you can use the include command with the virtual
attribute to include a CGI program file. You must also use an exec command to
execute the CGI program.
•The
virtual attributeis the URI of a file on the server.
•The
file attribute is a relative path name from the current directory. It cannot
contain elements such as
../ and it cannot be an absolute path.
Example:
<!--#include file="bottle.gif"-->
echo
The echo command inserts the valueof an environment variable. The var attribute
specifies the environment variable to insert. If the variable is not found, “(none)” is
inserted. For a list of environment variables, see the section “Environment
Variables in Server-Side HTML Commands,” on page 117.
Example:
<!--#echo var="DATE_GMT"-->
fsize
The fsize command sends the sizeof a file. The attributes are the same as those for
the
include command (virtual and file). The file size format is determined by
the
sizefmt attribute in the config command.
Example:
<!--#fsize file="bottle.gif"-->
flastmod
The flastmod command prints the date a file was last modified. The attributes are
the same as those forthe
include command (virtual and file).Thedateformat
is determined by the
timefmt attribute in theconfig command.
Example:
<!--#flastmod file="bottle.gif"-->
Przeglądanie stron 115
1 2 ... 111 112 113 114 115 116 117 118 119 120 121 ... 147 148

Komentarze do niniejszej Instrukcji

Brak uwag