N
Nick Wedd
When I first wrote Perl cgi scripts to run on web sites, I was told to
put them in a directory called cgi_bin. I did so, assuming either that
the name of the directory was significant, or that the cgi_bin provided
by the web host has some magic property.
As I have written more scripts and used more servers, I have come to
realise that this is not at all necessary. I can put a cgi script
wherever I like, just as I can a .gif file. There is no magic involved.
So why did books and web hosts once encourage the use of a directory
called cgi_bin? Have things changed, or was it always irrelevant where
you kept your cgi scripts?
Nick
put them in a directory called cgi_bin. I did so, assuming either that
the name of the directory was significant, or that the cgi_bin provided
by the web host has some magic property.
As I have written more scripts and used more servers, I have come to
realise that this is not at all necessary. I can put a cgi script
wherever I like, just as I can a .gif file. There is no magic involved.
So why did books and web hosts once encourage the use of a directory
called cgi_bin? Have things changed, or was it always irrelevant where
you kept your cgi scripts?
Nick