[gopher] Motsognir question

Martin Kukac logout128 at gmail.com
Tue Dec 29 08:15:40 UTC 2015


On 12/29/2015 06:26 AM, Mateusz Viste wrote:
> BTW, in the special case that a script is called by a gophermap (as
> opposed to being called by the user agent directly), I believe it would
> make more sense to set the current working directory to where the
> gophermap is, not where the script is. What do you think?
>
> say, I have a gophermap in /mystuff, that calls the inline script
> /cgi-bin/output.cgi - in this case, I'd rather expect the current
> working directory of the scrip to be set to /mystuff, instead of
> /cgi-bin/. Do you agree on this?

I agree, it makes more sense to me as well. It's quite the same how 
require_once() in PHP works - working directory is the one of script 
that calls the function, not the one being included.

Martin





More information about the Gopher-Project mailing list