Current location: Hot Scripts Forums » Programming Languages » Perl » Configuring perl newbie question?


Configuring perl newbie question?

Reply
  #1 (permalink)  
Old 09-12-04, 04:39 AM
mickengland mickengland is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Configuring perl newbie question?

I have downloaded a few scripts and I'm not sure about how to change
them to suit my site.

Below is part of a perl script I have downloaded, now I need to
personlize them for my site.

My site = http://happydrink.shyper.com

I have put a simple clock on it if it helps with my answer

http://happydrink.shyper.com/cgi-bin/textclock.pl

On my server we use the public_html folder only and not the www folder
I have created a new folder in the public_html called perltest and
uploaded the htm files into hear, I have put the perl script in my
cgi_bin.

Can someone post a reply editing the script below to suit my site.

Also I see /usr/ in alot of scripts what does it mean?
--------------------------------------------------------------------------------
#*******Variables that need to be personalized***********
$answerFile = "/usr/www/users/mhughes/perltest/answers.txt";
$logFile = "/usr/www/users/mhughes/perltest/testlog.htm";
$logFileUrl =
"http://www.flashlightbrown.com/perltest/testlog.htm";
$testUrl = "http://www.flashlightbrown.com/perltest/test.htm";
$graphFile = "/usr/www/users/mhughes/perltest/graphlog.htm";
$graphFileUrl =
"http://www.flashlightbrown.com/perltest/graphlog.htm";
Reply With Quote
  #2 (permalink)  
Old 09-17-04, 11:02 AM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Mick,

Quote:
Can someone post a reply editing the script below to suit my site.
Not really. More info is needed.

Quote:
Also I see /usr/ in alot of scripts what does it mean?
In this context it's just part of the path (which you do need to change) for this particular script.

Code:
#*******Variables that need to be personalized***********
$answerFile = "/usr/www/users/mhughes/perltest/answers.txt";
$logFile = "/usr/www/users/mhughes/perltest/testlog.htm";
$logFileUrl =
"http://www.flashlightbrown.com/perltest/testlog.htm";
$testUrl = "http://www.flashlightbrown.com/perltest/test.htm";
$graphFile = "/usr/www/users/mhughes/perltest/graphlog.htm";
$graphFileUrl =
"http://www.flashlightbrown.com/perltest/graphlog.htm";
All of these scalars need to be modified for your setup. If you do not know this information you need to contact your host (or their website for a FAQ) and ask them. This info is quite different from host to host and even from user to user in some instances.

~Charlie
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
perl newbie has a problem... fowler23 Perl 4 03-24-10 05:14 PM
NEWBIE QUESTION: Forms - Assigning Values to Variables jenf JavaScript 1 07-23-04 03:36 PM
Newbie Perl Auction Site matlack Perl 1 05-12-04 05:23 AM
Question about Perl Report - please help carlnasc Perl 1 04-14-04 05:04 AM
newbie perl script to call an array in a subroutine and add 1 Arowana Perl 1 10-31-03 01:04 PM


All times are GMT -5. The time now is 03:58 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.