PDA

View Full Version : Problem with a cgi-script I wrote.


[Skulls] Jock
13-01-2001, 22:51
Right, I wrote a cgi-script for the website of a Counter-strike Clan. Now up until yesterday it worked perfectly (well almost).

Anyway now for some reason when I try to execute it, my computer tries to download the file instead, I've also had a friend try accessing it and it also tries to download the script.

Could someone please shed some light as to why this might be happening.

Please help me, I've spent months developing it.

[Edited by [Skulls] Jock on 13-01-2001 at 09:57 PM]

Watermelon
13-01-2001, 23:23
is it a good script...what does it do...could i have a copy ? :)

[Skulls] Jock
13-01-2001, 23:37
because the clan always has loads of matches and all the fixtures are put on the site i had to manually add the fixtures myself to the page and upload it to the net.

so i wrote this script that lets anyone (that has an account) can add a fixture themself. along the way i also added the ability to add match results and offender handling and stuff.

its not bad. but it doesn't do anything at the moment cause its broken. :(

c'mon someone out there must know whats wrong with it.

Godin
14-01-2001, 01:33
What Language is it in? CGI isnt overly helpful as thats really a protocol/interface.

If its PERL have you made sure the FIRST line it prints is

Content-type: text/html


the print line would be
print "Content-type: text/html\n\n";

That tends to cause that problem with PERL CGI Scripts.

[Skulls] Jock
14-01-2001, 13:41
Ooops, shoulda said. Its written in Perl.

I''ve taken care of the headers and everything otherwise I would get an error message.

But this really is a dodgy problem, it just tries to download itself.

Anyway, I've decided to start from scratch, this may be a good thing in disguise, it will give me a chance to refine the code and remove all the un-necessary stuff.

Watermelon
14-01-2001, 13:57
could i have a copy of the script to use on my site ?
if you let me i'll have a "made by [Skulls] Jock" and a link to you site

but its ok if you dont want me to have a copy...either way its up to you :)

[Skulls] Jock
17-01-2001, 21:14
Yup sure you can have a copy, I'm in the middle of re-writing it at the moment.

I'm just bout finished the user stuff, then once thats done it should just be a couple of days before its finished (he says).

Contact me sometime about it, my ICQ is 72545932 and email is jock203@hotmail.com