Where CGIs run (was: Another problem (sorry ;-) )
[email protected] (Denis Howe) Sat, 18 Sep 1999 22:43:40 +0100
| Newsgroups | perl.riscos |
|---|---|
| Message-ID | <[email protected]> |
[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). Furthermore, if you chdir, look out for symbolic links. You may need to actually include the directory part of $0 in all your file references to get what you want. OTOH, you may not be worried about making your scripts that general. -- Denis Howe <[email protected]> Free On-Line Dictionary of Computing http://foldoc.doc.ic.ac.uk/