home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1681
Discussions: 188,402, Posts: 2,243,609, Members: 232,632
Old September 7th, 2005, 10:47 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Apr 2003
Location: VA
Posts: 250
Send a message via AIM to Jokerswild
Creating a Guestbook

Hey guys, I'm trying to add a guest book to my site and I'm running into some problems.

Mainly, I don't know what I'm doing.

I've found plenty of free templates, especially a nice one from Matt's Script Archives. ANyway, if I try to mod the "Add a guest" HTML file to point to my *.pl file, well when I click on the "Add comment" button, it just displays the contents of the *.pl file....it doesn't run like a script should.

I'm running WIndows XP if that matters. I dont know anything about perl script but the instructions deal as if someone is using linux ("CHMOD THE FILE....")

Anyway, Im' beating myself up because I can't figure this out. It seems simple enough and I'd like to add the feature to my site.

Jokerswild is offline   Reply With Quote
Old September 8th, 2005, 01:47 PM     #2 (permalink)
Member
 
Join Date: Apr 2003
Location: VA
Posts: 250
Send a message via AIM to Jokerswild
Bump???

Jokerswild is offline   Reply With Quote
Old September 8th, 2005, 06:27 PM     #3 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
ok, ill presume you ave perl installed yeh?

sometime on win xp you have to chnage the top line of every .pl file so it points to the perl.exe usally C:\perl\bin\perl.exe i think

forexample
Code:
#!/usr/local/bin/perl
chnage to
Code:
#!C:\perl\bin\perl.exe

Carl-cox- is offline   Reply With Quote
Old September 9th, 2005, 10:21 AM     #4 (permalink)
Member
 
Join Date: Apr 2003
Location: VA
Posts: 250
Send a message via AIM to Jokerswild
Okay, I've switched to a different guestbook script.

I do not have perl installed on my machine. The hosting company of my web site does however. According to their KB, they gave me the path name to past into the top of my cgi files. However, when I upload the files to my "cgi-bin" directory and try to access a test HTML file there, i get a "page cannot be displayed" error. If i rename the folder to "cgi_bin" and try to access the same file, the contents are displayed.

So now I've tried to type the address of my "admin" cgi file, but again, it only displays the contents of the file, it doesn't run the script....I'm lost.

Here is the link to the script i downloaded: http://go-mega.net/megabook/
Jokerswild is offline   Reply With Quote
Old September 9th, 2005, 10:23 AM     #5 (permalink)
Member
 
Join Date: Apr 2003
Location: VA
Posts: 250
Send a message via AIM to Jokerswild
The only other thing I can figure is I'm not uploading my files in "ascii" format. I'm not using an FTP client, just the one that is built into Windows so I'm not sure how to complete this.
Jokerswild is offline   Reply With Quote
Old September 9th, 2005, 03:58 PM     #6 (permalink)
Member
 
Join Date: Apr 2003
Location: VA
Posts: 250
Send a message via AIM to Jokerswild
Bump....Again....
Jokerswild is offline   Reply With Quote
Old September 10th, 2005, 04:32 PM     #7 (permalink)
Member
 
Join Date: Jul 2005
Location: Malaysia
Posts: 132
hi Jokerswild,

i'm not a programmer to teach you about perl/cgi...
i'm just like you... but maybe i got this info early than you.

before i continue on, please answer this...
1) are you on a free hosted site like tripod.lycos.com?
2) or do you own your own domain name, and also paid hosting service?

if you answer 1) and that it is tripod.lycos.com, then you probably didn't aware of "custom scripts"
which are not allowed to be hosted on free tripod.lycos.com sites.

but you actually can make your own - not just modifying with the original left intact, but modify it
and make additions to it as well - provided that it is ALLOWED.

i'm on tripod, anyway... and i did try before, i guess somewhere on may/june this year.
and it works well - i mean it, nothing's wrong happened.

but, i'm not sure how is the guestbook script did you mention here looks like - afterall it makes not
so much differences.

and either your answer is 1) or 2), the following might be the reasons...:

it might because of your script - perhaps there's a bit misconfiguration you did into it which leads
to that problem.

at the very least, try to ask your system administrator - the staffs at your hosting company.
they supposed will be able to give you some ideas, so that you're able to solve it.
it might happened because of their server - for whatever it is/are.

or why don't you just try to send a message to report it to Matt - the author?

if you get a "page cannot be displayed" error, it usually happens because of either one or two of the
following:
1. the web page is not existed
2. the web page is not accessible due to some server problems, as mentioned above
3. your script is not configured correctly, as mentioned above
[and there might some more which i don't know]

and about ftp uploading, i guess most ftp softwares today, such as filezilla and wsftp, are able to
automatically change the uploading method - either binary(mostly for images) or ascii(text-based).

however, since you said that you used the one that is built into Windows(i think it should be telnet),
then i'm not really sure of it as i don't have a telnet access - not on tripod.lycos.com free hosted site.

okay, so what i'm saying here...?
nothing but some hints which you might haven't yet known.
read my post carefully, and see if you can find the causes of your problem here.

and... does your hosting provider offer sendmail? not all web hosting which support perl/cgi have
this program installed - just like tripod.lycos.com, but they have a ready-made/pre-made perl
modules[.pm] which will do just the same.

if you have configured, or if it is configured to work ONLY if sendmail is available, then you have to
concern about this too...

and by the way, you may want to visit http://www.htmlgoodies.com/ to get a free guestbook which
comes along with a nice tutorial - you can choose to get their guestbook script, or their bbs script,
or both - believe me, it's not so hard to modify those scripts - woops! i'm not altering copyright, okay?...

until then, good luck with your guestbook script!

[ p/s: if it still doesn't get to work, why don't you just get a new one?... ]
__________________
I learnt from the best. YOU are amongst them!
LetMeKnow is offline   Reply With Quote
Reply


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

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro creating in WP 10,11 batmeat Applications and Operating Systems 2 May 21st, 2004 12:28 PM
Guestbook/forum thePh@r@oh Graphic Design and Digital Photography 4 July 10th, 2003 12:13 PM
Yea! Someone finally signed my guestbook.... OuTpaTienT IMO Community 24 January 19th, 2003 02:49 AM
guestbook problems! Creatures Graphic Design and Digital Photography 10 December 26th, 2002 05:56 PM
Good PERL Guestbook brandon184 Webmastering and Programming 2 March 5th, 2002 01:54 AM

Most Active Discussions
Is It Just Me? (2906)
3-days in and no threads about Gaza (161)
Unarmed man on his stomach shot by .. (6)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
RCA 52Inch HDTV wont turn on (5)
Folderchat Weekday thread (444)
Recent Discussions
Futronix has water features? (0)
Laptop proccesor to desktop mob.. (2)
Please help! multiple problems! (4)
RCA 52Inch HDTV wont turn on (5)
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 04:25 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28