Quiz Script?

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

Quiz Script?

Postby Kireihana » Sat Oct 23, 2004 11:08 am

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?
User avatar
Kireihana
 
Posts: 761
Joined: Sat Feb 14, 2004 7:44 pm
Location: Tennessee

Postby shooraijin » Sat Oct 23, 2004 1:54 pm

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)
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby Mithrandir » Sat Oct 23, 2004 7:18 pm

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.
User avatar
Mithrandir
 
Posts: 11071
Joined: Fri Jun 27, 2003 12:00 pm
Location: You will be baked. And then there will be cake.

Postby shooraijin » Sat Oct 23, 2004 9:07 pm

That's an awfully strange definition of fun. :P
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby Mithrandir » Sun Oct 24, 2004 8:52 am

Awfull. Strange. Yeah, it's like me a bit. :lol:


Did you get any farther, pretty flower?
User avatar
Mithrandir
 
Posts: 11071
Joined: Fri Jun 27, 2003 12:00 pm
Location: You will be baked. And then there will be cake.

Postby Kireihana » Sun Oct 24, 2004 10:31 am

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
User avatar
Kireihana
 
Posts: 761
Joined: Sat Feb 14, 2004 7:44 pm
Location: Tennessee

Postby shooraijin » Sun Oct 24, 2004 12:15 pm

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.
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby Kireihana » Sun Oct 24, 2004 1:06 pm

Thanks. I think I'll PM you, because I really don't know what I'm doing XD.
User avatar
Kireihana
 
Posts: 761
Joined: Sat Feb 14, 2004 7:44 pm
Location: Tennessee

Postby shooraijin » Sun Oct 24, 2004 3:52 pm

Okie. Check your PM box for a fantabulous reply.
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby Mithrandir » Sun Oct 24, 2004 8:54 pm

Total response time, 2 hours and 46 minutes.


You just *can't* get that kinda response time from your ISP. ;)
User avatar
Mithrandir
 
Posts: 11071
Joined: Fri Jun 27, 2003 12:00 pm
Location: You will be baked. And then there will be cake.

Postby shooraijin » Sun Oct 24, 2004 8:55 pm

Actually, we're still working on it :sweat: ... error logging takes 24 hours to enable.
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby Kireihana » Mon Oct 25, 2004 2:02 pm

[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
User avatar
Kireihana
 
Posts: 761
Joined: Sat Feb 14, 2004 7:44 pm
Location: Tennessee

Postby shooraijin » Tue Oct 26, 2004 12:52 am

Yes ^_^ I'm going to look at it more when I get back to my apartment (still on ER shift).
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 145 guests