100 Web Space
http://forum.100webspace.com/

need help with this code
http://forum.100webspace.com/viewtopic.php?f=5&t=8498
Page 1 of 1

Author:  ludakris [ Thu Jan 24, 2008 10:42 pm ]
Post subject:  need help with this code

can you tell me what i have done wrong from this code? i created a another folder for the text to be stored not sure if this is correct? can you tell me if the code is right?

#!/usr/local/bin/perl

# This file contains configurable settings for story.cgi program.
# Change these values as needed for your particular site.
# Any customization for a particular site can be made here in the
# storyconfig file. No changes to the story.pl program should
# be required.

#
#
#

# This is the name of the directory where the story data is stored.
# You'll need to make sure it exists -- that the web server can write to it.
# By default, this program uses a directory called "story" under the
# cgi-bin directory.
$story_dir = "/home/your-cpanel-name/public_html/dino/storytext/";

# URL of image directory, or "." if they are in the same directory
# as this script:
$image_url = ".";

# Your own web page URL
# Example: $host_url = "http://dinos_quest.com";
$host_url = "/";"http://www.dinos-quest.com

# Email address to send mail to when each new page is posted. Or leave
# blank to not send e-mail. IMPORTANT: Put a before any @ characters!
# Example: $announce_to = "you@somewhere.com";
$announce_to = "";

# Location of your sendmail program, if you want the program to send
# you mail about each new response. (Unix only.)
$sendmail = "/usr/lib/sendmail";

# URL of header image, and the image's width and height and alt text.
$header_image = "$image_url/dinoquest_title.gif";
$image_width = 498;
$image_height = 131;
$image_alt = "dinoquest_title";

Author:  syman [ Tue May 06, 2008 6:45 am ]
Post subject: 

The perl path on our servers is:

#!/usr/bin/perl -w

Also you will need to add the following line to your perl scritps in order to make them functional:

print "content-type: text/html \n\n";

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/