Page 1 of 1

Quiz Script?

PostPosted: Sat Oct 23, 2004 11:08 am
by Kireihana
I'm looking for a good personality quiz script. I tried using a perl one but I kept getting the 500 error page. I think its because I chmod it to 755 but my server keeps switching it to 644 >.<

So does anyone who has experience writing quizzes know of a good script?

PostPosted: Sat Oct 23, 2004 1:54 pm
by shooraijin
No, the 500 error page is usually generated because the script is bugging out.

Since you seem to have a shell (because you can chmod -- wow, a Unix goddess at 14! I'm impressed ^_^), try this

perl -c scriptname

and see what happens. If it doesn't come up with any errors, try running it directly.

chmod 755 scriptname
./scriptname

(in the directory it's in)

PostPosted: Sat Oct 23, 2004 7:18 pm
by Mithrandir
For a fun time, make sure that you're first line (sometimes called the "shebang" line) has a " -w" at the end (no quotes) to tell perl to run in warn mode.

PostPosted: Sat Oct 23, 2004 9:07 pm
by shooraijin
That's an awfully strange definition of fun. :P

PostPosted: Sun Oct 24, 2004 8:52 am
by Mithrandir
Awfull. Strange. Yeah, it's like me a bit. :lol:


Did you get any farther, pretty flower?

PostPosted: Sun Oct 24, 2004 10:31 am
by Kireihana
shooraijin wrote: wow, a Unix goddess at 14! I'm impressed ^_^


Hahaha, I am nothing of the sort! :lol: I know what chmod is and I know how to do it, but I know nothing beyond that. And my cpanel simply has a button next to the file where you can change the permissions. Or I just chmod through FTP.

Um, ok. The script (quiz.cgi) has to be in the cgi-bin, right? So then the action url for the form is cgi-bin/quiz.cgi?

Oldphilosopher, is this what you meant by the first line of the script?

#!/usr/bin/perl - w

PostPosted: Sun Oct 24, 2004 12:15 pm
by shooraijin
Depends on how your site is set up. It may be either /cgi-bin/quiz.cgi (note the preceding slash) or your_url/cgi-bin/quiz.cgi (like ~kireihana/cgi-bin/quiz.cgi).

That's what Phil meant. Actually, you might try taking that (the -w) off (leave the rest of it alone), just in case it's older code that a newer Perl is objecting to.

If you can get a shell, you can test the sanity of the script with perl -c, or you can E-mail or PM it to one of us and we'll check it out for you.

PostPosted: Sun Oct 24, 2004 1:06 pm
by Kireihana
Thanks. I think I'll PM you, because I really don't know what I'm doing XD.

PostPosted: Sun Oct 24, 2004 3:52 pm
by shooraijin
Okie. Check your PM box for a fantabulous reply.

PostPosted: Sun Oct 24, 2004 8:54 pm
by Mithrandir
Total response time, 2 hours and 46 minutes.


You just *can't* get that kinda response time from your ISP. ;)

PostPosted: Sun Oct 24, 2004 8:55 pm
by shooraijin
Actually, we're still working on it :sweat: ... error logging takes 24 hours to enable.

PostPosted: Mon Oct 25, 2004 2:02 pm
by Kireihana
[quote="oldphilosopher"]Total response time, 2 hours and 46 minutes.


You just *can't* get that kinda response time from your ISP. ]

Nope, sure can't...

Shooraijin, we WILL prevail! :jump: lol

PostPosted: Tue Oct 26, 2004 12:52 am
by shooraijin
Yes ^_^ I'm going to look at it more when I get back to my apartment (still on ER shift).