kellyt3
02-24-2009, 05:09 AM
I'm a rank beginner when it comes to php and perl scripts. I downloaded this free script called everyauction and I believe I installed it correctly, as it is viewable up until a point. I use hostmonster for my files. I put the code in the cgi-bin and set the permissions to 744. The first part of the code looks like this:
#!/usr/local/bin/perl
use vars qw(%config %category %form);
use strict;
#-###########################################################################
#
# In accordance with the GPL, this copyright notice MUST remain intact:
#
# EveryAuction Release Version 1.53 (2/17/02)
# Copyright (C) 2000-2002 EverySoft
# Registered with the United States Copyright Office, TX5-186-526
# http://www.everysoft.com/
#
#-###########################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#-###########################################################################
#
# Modification Log (please add new entries to bottom):
#
# * 02/2000
# Matt Hahnfeld (matth@everysoft.com) - Original Concept and Design
# Version available from http://www.everysoft.com/
#
# * MM/YYYY
# Name (email) - Modification
# Availability
#
#-###########################################################################
#-#############################################
# Configuration Section
# Edit these variables!
local %config;
# The Base Directory. We need an
# absolute path for the base directory.
# Include the trailing slash. THIS SHOULD
# NOT BE WEB-ACCESSIBLE!
$config{'basepath'} = '/public_html/stampannex/cgi-bin/auction/';
# Closed Auction Directory
# This is where closed auction items are stored.
# Leave this blank if you don't want to store
# closed auctions. It can potentially take
# up quite a bit of disk space.
$config{'closedir'} = 'closed';
# User Registration Directory
# This is where user registrations are stored.
# Leave this blank if you don't want to
# require registration. It can potentially
# take up quite a bit of disk space.
$config{'regdir'} = 'reg';
# List each directory and its associated
# category name. These directories should
# be subdirectories of the base directory.
%category = (
africa => 'Africa',
asia => 'Asia',
australia => 'Australia',
europe => 'Europe',
namerica => 'North America',
samerica => 'South America',
);
I am unable to create categories for my action. I get the message:
Error:
Category directory africa could not be opened.
I thought the code was supposed to create the category, but maybe there is something I'm not understanding. Please help me out.
#!/usr/local/bin/perl
use vars qw(%config %category %form);
use strict;
#-###########################################################################
#
# In accordance with the GPL, this copyright notice MUST remain intact:
#
# EveryAuction Release Version 1.53 (2/17/02)
# Copyright (C) 2000-2002 EverySoft
# Registered with the United States Copyright Office, TX5-186-526
# http://www.everysoft.com/
#
#-###########################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#-###########################################################################
#
# Modification Log (please add new entries to bottom):
#
# * 02/2000
# Matt Hahnfeld (matth@everysoft.com) - Original Concept and Design
# Version available from http://www.everysoft.com/
#
# * MM/YYYY
# Name (email) - Modification
# Availability
#
#-###########################################################################
#-#############################################
# Configuration Section
# Edit these variables!
local %config;
# The Base Directory. We need an
# absolute path for the base directory.
# Include the trailing slash. THIS SHOULD
# NOT BE WEB-ACCESSIBLE!
$config{'basepath'} = '/public_html/stampannex/cgi-bin/auction/';
# Closed Auction Directory
# This is where closed auction items are stored.
# Leave this blank if you don't want to store
# closed auctions. It can potentially take
# up quite a bit of disk space.
$config{'closedir'} = 'closed';
# User Registration Directory
# This is where user registrations are stored.
# Leave this blank if you don't want to
# require registration. It can potentially
# take up quite a bit of disk space.
$config{'regdir'} = 'reg';
# List each directory and its associated
# category name. These directories should
# be subdirectories of the base directory.
%category = (
africa => 'Africa',
asia => 'Asia',
australia => 'Australia',
europe => 'Europe',
namerica => 'North America',
samerica => 'South America',
);
I am unable to create categories for my action. I get the message:
Error:
Category directory africa could not be opened.
I thought the code was supposed to create the category, but maybe there is something I'm not understanding. Please help me out.