Why can I no longer use exec cmd in my SSI/SHTML files?
Print this Article
Comment on this Article
If you are running Hosting Configuration 2.0 and above, "exec cmd" has been disabled for security reasons. You can still execute cgi scripts using "exec cgi." Server-side scripts can also be run through include files. The syntax for this is shown below:
<!--#include virtual="[file path/file name]"-->
The include file should have the following as its first line of code:
print "content-type: text/html\n\n"
The advantage of using include files is that you can pass query string values. These files must reside in a directory from which you can run cgi scripts. Under Hosting Configuration 2.0, this can be any directory on your Website.




