Allowing any old executable outside the webroot to be run from an SSI is a security risk, so IIRC Apache's default SSI configuration doesn't allow it, but if you configure it right this should work:
<!--#exec cmd="/some/path/to/command" -->
Where the "/some/path/to/command" is run via the system shell, much like the 1-arg version of system() in perl.
| [reply] [d/l] |
Well, this site on Apache SSI's #include offers the file= parameter. Now, this can't be absolute paths, but it can be relative to the physical filesystem (just not '../').
However, the virtual= parameter allows you to use absolute paths -- it's just that the 'root' is the DocumentRoot, not the filesystem root. If you're using this script with multiple virtual servers on the same machine, you can use a ScriptAlias or Alias in your Apache config to make sure, e.g. that all references to "/chat/" on any virtual host will access "/home/legato/scripts/chat/". Adjust as needed, of course.
radiantmatrix
require General::Disclaimer;
s//2fde04abe76c036c9074586c1/; while(m/(.)/g){print substr(' ,JPacehklnorstu',hex($1),1)}
| [reply] |