Server Side Include (SSI)
8.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:
separator:
Default Output
Scenario
Success
Authentication Error
File Open Error
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...
Anybus CompactCom 40 EtherNet/IP IIoT Network Guide
Source file
Optional; specifies line separation characters (e.g. "<br>").
Default Output
(file contents)
"Authentication error"
"Failed to open file 'filename'"
40 (244)
SCM-1202–069 1.9 en-US
Need help?
Do you have a question about the CompactCom 40 and is the answer not in the manual?
Questions and answers