I ran into something today I've never noticed any comment here about. Maybe I should know this but never ran into it before.
I wanted to use a single cgi script to generate several different formated pages. That is, the output page would have different ordering depending on the content of ENV{SCRIPT_FILENAME}. I hoped to have one real cgi script and several symbolic links to it that would change that ENV item. I tried the simplist test at www.jtan.com/~reader/scr_filename.cgi which outputs the SCRIPT_FILENAME ENV item of the contacting client, by creating `ln -s link.cgi scr_filename.cgi' I assumed it would fire scr_filename.cgi but with a different ENV{SCRIPT_FILENAME}. But apparently that isn't going to work. Trying www.jtan.com/~reader/link.cgi Gives an error in the browser window: Internal Server Error And this in apache error log: Premature end of script headers: /home/reader/public_html/link.cgi An ls -l shows: -rwxr-xr-x 1 [...] 202 Apr 1 2002 scr_filename.cgi [...] lrwxr-xr-x 1 [...] 8 Jan 23 09:19 link.cgi -> diag.cgi scr_filename.cgi contains: #!/usr/bin/perl print "Content-type: text/html\n\n"; print "SCRIPT_FILENAME = $ENV{SCRIPT_FILENAME}"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]