in reply to Passing variables to an SSI script

exec is deprecated. You should use include virtual instead, which allows you to pass a query string. If you're not using Apache, you'd better consult the docs for your particular server.