It is currently Tue May 22, 2018 8:00 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: need help with this code
PostPosted: Thu Jan 24, 2008 10:42 pm 
Noobie
Noobie

Joined: Wed Jan 23, 2008 3:16 pm
Posts: 1
Location: LONDON
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";

_________________
LIFE IS GOOD


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 06, 2008 6:45 am 
Noobie
Noobie

Joined: Tue Feb 19, 2008 6:36 pm
Posts: 19
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";


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ]  Moderators: fhmagic, KJ, Support Team, Moderators

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
100WebSpace © 2011