Why can I no longer use exec cmd in my SSI/SHTML files?
Print this Article
Comment on this Article
Last Updated:
February 19, 2007 10:14 AM
If you are running Hosting Configuration 2.0, "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/htmlnn"
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 site.