what could be doing this?
-Gene
On Thursday, November 27, 2003, at 12:51 PM, John Delacour wrote:
At 11:58 am -0700 27/11/03, Eugene Ray wrote:I'm running across something strange (to me). I have an .html file that is posting to parent_info.cgi but the only file in the directory is parent_info.cgi.bin The script seems to execute and the browser url reads parent_info.cgi ?? I changed .bin to .hqx and expanded the file to find the script code I expected to see as if there were a straight parent_info.cgi file. What is MacPerl doing here and how can I save my modified scripts in the .bin format to execute >> properly?
I have checked the pathway to the script to make sure that there isn't some duplicate .cgi file the .html file is posting to. Nothing.
The .bin extension signifies to me and my machines that the file is encoded in MacBinary and I don't see what business a cgi would have with such an extension. What determines the executability of a cgi is a) the correct permissions on the server, b) correct and secure syntax including the presence of the content-type line followed by a blank line at the top of the file. I haven't tried it, and it probably depends on the server, but the presence of absence of one file extension or another ought not to make a scrap of difference if the file is a valid executable. I name my executables .pl or .cgi or .nothing and they behave just the same.
JD