![](https://secure.gravatar.com/avatar/e8182135be0245df69df7ddf7f70856a.jpg?s=120&d=mm&r=g)
July 23, 2004
1:05 a.m.
Right now I moved all the programs in /usr/local/mailman/cgi-bin to /usr/local/mailman/cgi-bin.orig, then created shell scripts in cgi-bin that look like this:
--- start file: listinfo --- #!/bin/sh
../cgi-bin.orig/listinfo | /usr/bin/php --- end file: listinfo ---
That's all there is to it. Now I can add PHP directives in Mailman's HTML code, and they get parsed.
And what if I send an HTML file to your list with php code included? You get a security issue here.
Better way in my view is to write a wrapper script in php, that does the graphics and such things, then pushes the web page. You get the wrapper to work in lieu of the cgi by configuring Apache to do so (RewriteRule, or Alias).
-- Fil