Home > Backend Development > PHP Tutorial > APACHE(5)_PHP Tutorial

APACHE(5)_PHP Tutorial

WBOY
Release: 2016-07-13 17:11:48
Original
820 people have browsed it

4.8.1 SPML - Included file format
This file is parsed as an HTML document and embedded with
special directives like SGML annotations. The general syntax of the directive is:

The value here is often enclosed in double quotes; many directives only allow a single attribute - value pairing.
The allowed items are:
config
This command controls various profiling methods. Valid attributes are:
errmsg
This value is the message sent back to the client if an error occurs while parsing the file.
sizefmt
This value is the format used to set the display file size. Valid values ​​are bytes in
bytes or abbrev in
in Kb or Mb, whichever is appropriate.
timefmt
This value is the
string used by the strftime(3) library function when printing dates.
echo
This command prints one of the parameters of the connotation, which is defined as follows. If the parameter is not set
then print (none). Any dates printed follow the currently configured timefmt
. Attributes:
var
This value is the name of the parameter to be printed.
exec
This command executes the given shell command or CGI script. InculdesNOEXEC
This option can completely turn off this command. Valid attributes are:
cgi
This value specifies the (%-encode) URL relative to the CGI script
. If the path does not start with (/), then it is relative to
the current file. The file referenced by this path will be launched as a CGI script
, even if the server does not think it is a CGI script
. However, the directory containing the script must have
support for CGI scripts turned on (turned on with the ScriptAlias ​​or ExecCGI option).
Requests from the client give this script PATH_INFO and the query
string (QUERY_STRING); this cannot be specified in the URL path.
So the script can obtain this information from the included
parameters in addition to the standard CGI environment parameters.
If the script returns a Location: header instead of the normal output
, then this will be converted into an HTML link.
include virtual This project should be used to refer to exec cgi.
cmd
The server will execute the given string as /bin/sh. This command can
get the included parameters.
fsize
This command prints the size of the specified file, and follows the format specified by sizefmt.
Attributes:
file
This value is the relative path to the directory containing the file to be parsed.
virtual
This value is relative to the (%-encoded) URL path
of the file to be parsed. If the path does not start with (/), then it is relative to
the current file.
flastmod
This command prints the last modified date of the specified file, following the format of timefmt

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629551.htmlTechArticle4.8.1 SPML - Included file format This file is parsed as an HTML file and embedded as SGML annotations (embedded) Special instructions. The general syntax of the command is: !--# project attribute=value...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template