D
Derf
I have a file at /path/from/root/cgi-bin/file.pl
and I want to require /path/from/root/cgi-bin/dir/requirefile.pl
the web root would be /cgi-bin/file.pl and the user root would be
/path/from/root/cgi-bin/file.pl
when i use an absolute path in file.pl:
do "/path/from/root/cgi-bin/dir/requirefile.pl";
or
require "/path/from/root/cgi-bin/dir/requirefile.pl";
i get the error
Can't do: No such file or directory at /path/from/root/cgi-
bin/dir/requirefile.pl line ##.
but if I move file.pl to /path/from/root/cgi-bin/dir/file.pl
and then do a relative call:
require "requirefile.pl";
or
do "requirefile.pl";
it works fine
any ideas why?
Thanks for any help
Derf
and I want to require /path/from/root/cgi-bin/dir/requirefile.pl
the web root would be /cgi-bin/file.pl and the user root would be
/path/from/root/cgi-bin/file.pl
when i use an absolute path in file.pl:
do "/path/from/root/cgi-bin/dir/requirefile.pl";
or
require "/path/from/root/cgi-bin/dir/requirefile.pl";
i get the error
Can't do: No such file or directory at /path/from/root/cgi-
bin/dir/requirefile.pl line ##.
but if I move file.pl to /path/from/root/cgi-bin/dir/file.pl
and then do a relative call:
require "requirefile.pl";
or
do "requirefile.pl";
it works fine
any ideas why?
Thanks for any help
Derf