Forum Moderators: coopster & phranque

Message Too Old, No Replies

Problem with path to required file...

problem path file required

         

Jack of All Trades

12:17 am on Aug 13, 2003 (gmt 0)

10+ Year Member



I am having a problem with an auction script, here is the first part of the auction:

#!/usr/bin/perl
#!perl
#!/usr/bin/perl5
#!/usr/local/bin/perl
#!/usr/local/bin/perl5

use vars qw(%config %category %form %supercat);
use vars qw(%cookie $loginalias $loginpassword);
use POSIX qw(strftime);
use File::Copy;
use strict;
use CGI ();
#use CGI::Carp qw(fatalsToBrowser);

# on Windows NT/2000 servers only you need to specify
# the drive letter (c:,d:,e:) with the server path to the config.pl file example:
# require "c:/your/path/cgi-bin/auction/config.pl";

require "/config.pl";

The problem I am having is that I can't get the right path to config.pl. I have tried many different paths but I always get error messages. Do any of you have any suggestions? The site is hosted on a Windows 2000 server. Thanks!

bakedjake

12:19 am on Aug 13, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



require "/config.pl"

Unless config.pl is in the root directory of the DRIVE that you're hosting the server from, you don't want that.

Use the fully qualified FILESYSTEM path, as the instructions direct you to do.

Jack of All Trades

12:37 am on Aug 13, 2003 (gmt 0)

10+ Year Member



Yes, I tried that, the path was something like e:\home\site\htdocs\cgi-bin\auction\config.pl (this is just an example of what it looked like, I don't know off the top of my head what the path is) but it still didn't work.

bakedjake

12:45 am on Aug 13, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



e:\home\site\htdocs\cgi-bin\auction\config.pl

Did you try it with forward slashes? So your example would look like:


require "e:/home/site/htdocs/cgi-bin/auction/config.pl";