delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/08/20:30:23.1

Message-ID: <375D4D79.E710D958@connect.ab.ca>
Date: Tue, 08 Jun 1999 17:06:01 +0000
From: Tom Fjellstrom <tomcf AT connect DOT ab DOT ca>
X-Mailer: Mozilla 4.6 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compiling CGI script under DJGPP
References: <e0J63.2287$zn6 DOT 36970 AT weber DOT videotron DOT net>
NNTP-Posting-Host: pppa94.connect.ab.ca
X-Trace: 8 Jun 1999 16:53:50 GMT, pppa94.connect.ab.ca
Lines: 39
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Just one question:
Are you actually just opening the file from the hard disk
with your browser? If you are you should first look
into getting a web server.

and one more thing, when compiling with gcc the 
file will only become an executable if you supply
it with a .exe extension, on the other hand if
you copy the myscript.exe and rename it to myscript.cgi
then all you need is a web server that can understand that
the cgi is an executable. (i.e.: Apache)

HTH.

	Tom Fjellström

Martin Berard wrote:
> 
> I'm have been developping apps on unix for years!!  Now I need to test some
> of my CGI script under my PC.
> 
> I hope someone can help me a bit solving these issue.
> 
> 1.  When I compile with the following:
>         gcc -o myscript.cgi myscript.c
>     two files are generated:
>         myscript.cgi and myscript.exe  (different size !? the .exe is
> bigger)
> 
>     The .exe seems to be runnable not the CGI (Bad command or file name)
> 
> 2.  When I start my script with my broswer it ask me if I want to download
> it..
> 
> Any help will be appreciated
> 
> Martin Bérard
> SHF SENC
> shf AT shf DOT qc DOT ca

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019