Re: Where CGIs run (was: Another problem (sorry ;-) )
[email protected] (Richard Proctor) Sun, 19 Sep 1999 08:02:57 +0100 (BST)
| Newsgroups | perl.riscos |
|---|---|
| Message-ID | <[email protected]> |
On Sat 18 Sep, Denis Howe wrote: > [email protected] wrote: > > remember that "." is where the script is run > > Some web servers invoke the script via a path, with . set to the > server root. The safest approach is to use the directory part of $0 > (which will be blank in Richard's case). > Actually on the three sites where I can run scripts (not the demon ones), in all cases $0 gives a full path to the script. > OTOH, you may not be worried about making your scripts that general. > I like having scripts as general as possible, I want them to work on at least two of the sites I manage and to work at home on an RPC. (Also working on my laptop has points to be said for it - though this is not always possible). Richard -- [email protected]