![Anybus CompactCom 40 EtherNet/IP Network Manual Download Page 40](http://html1.mh-extra.com/html/anybus/compactcom-40-ethernet-ip/compactcom-40-ethernet-ip_network-manual_2948758040.webp)
Server Side Include (SSI)
40
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
6.3.7 IncludeFile()
This command includes the content of a file. Note that the content is not scanned for SSI.
Syntax:
<?--#exec cmd_argument='IncludeFile("
filename"
[,
separator
])'-->
filename-Source file
separator-Optional; specifies line separation characters (e.g. “<br>”).
Default Output:
Example:
The following example demonstrates how to use this function.
<HTML>
<HEAD><TITLE>IncludeFile Test</TITLE></HEAD>
<BODY>
<H1> Contents of ‘info.txt’:</H1>
<P>
<?--#exec cmd_argument='IncludeFile("info.txt")'-->.
</P>
</BODY>
</HTML>
Contents of ‘info.txt’:
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet,
consectetur, adipisci velit...
When viewed in a browser, the resulting page should look somewhat as follows:
See also...
Scenario
Default Output
Success
(file contents)
Authentication Error
“Authentication error ”
File open error
“Failed to open file “
filename
” “