Article View: gnu.gcc.help
Article #42262fopen problem - works from command line, not CGI
From: Martin Radvancy
Date: Sat, 06 Jan 1996 00:00
Date: Sat, 06 Jan 1996 00:00
17 lines
1048 bytes
1048 bytes
I am writing a CGI script for a WWW site. When I test the program, it works from the command line, but when I call it as a CGI script, fopen returns with an error. Same file each time. This is under Linux. I have a SGI machine at work. I am using SGI ANSI C compiler and the code compiles without any problems and works correctly. At home, with gcc, I get warnings about incompatible types sent to fopen at compile time. The code works from the command line, but not when called from another program. I use the make command both on the SGI box (IRIX 5.3) and with Linux (at home). What am I doing wrong? Thanks. Marty martyr@pixi.com
Technical Details
Message-ID:
<4ckl95$oe1@rigel.pixi.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,d1517635de247aa6,start X-Google-Attributes: gid11318c,public From: martyr@pixi.com (Martin Radvancy) Subject: fopen problem - works from command line, not CGI Date: 1996/01/06 Message-ID: <4ckl95$oe1@rigel.pixi.com> X-Deja-AN: 134205299 organization: Pacific Information Exchange, Inc. newsgroups: gnu.gcc.help