Re: require and do - absolute vs relative - let me try again
Date: Tue, 07 Oct 2003 08:28:09 GMT
email@example.com (James Willmore) wrote in
> Huh? Try again using something like "/a/b/c/file.pl" instead of what
> you used to describe the issue. Maybe after doing that, you may find
> your error and not need to post ... because, it looks as though you're
> confussed about where the files are. I know I am :-)
> Seriously, you _should_ be able to execute another script from another
> location using an absolute path. You may want to check your
> permissions and, as always, try the script from the command line to
> see what happens.
I appreciate the help. I have the same problem from command line. It
turns out it is just this script. Other scripts run fine with the
absolute path. It is only this one script that says it can't be found if
I use an absolute path, but can be found if it is in the same directory
with a relative path (any other relative path fails as well "No such file
or directory"). The reqiuired script runs fine. The required script has a
couple do commands that use relative paths though. I wonder if those do
commands might need to be absolute so the require sees them. hmmmm
- Re: Pointing to working directory
... unreliability in [info script] if you launched ... then do [info script] you get ./script.tcl. ... to get the absolute path to your script. ... The command may have returned ...
- Re: require_once include twice the same file
... including it with its absolute path. ... I mean executing "php file1.php" via the command line ... you run the script on command line and everything is fine. ...
- Re: Perl and current directory
... to invoke the script. ... What I need to find is the absolute path to the directory where the perl ... What I need is to get exactly the same as the pwd command prints out. ... FindBin is not installed ...
- Re: include, relative path
... I'm having a stupid problem with the include command. ... I need to connect to the database from the script "check.php", ... Here you tell to go to root, then get one step closer to root and then look for the libraries directory, we could translate this to "Libraries:\". ... One way to get around some troubles are to use symlinks, this way you can have virtual directories which are located in the same relative path from the calling file, but that could be a bit difficult before you have a grasp of how paths works. ...
- Re: require and do - absolute vs relative - let me try again
... >> location using an absolute path. ... I have the same problem from command line. ... > turns out it is just this script. ...