Red Hat NETSCAPE ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual do Utilizador Página 116

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 148
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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"-->
Vista de página 115
1 2 ... 111 112 113 114 115 116 117 118 119 120 121 ... 147 148

Comentários a estes Manuais

Sem comentários