- cgi-script problem
- Posted by imhotep85@hotmail.co.uk on August 30th, 2006
Hey,
Sorry this is probably an obvious error on my behalf but i cant find
the answer. I've weitten my first cgi-script, written the form it post
the information to it but on clicking submit instead of invoking the
script it lets me try and save or open it. What am I doing wrong?
Thanks.
P.S. I've got apache installed and running ok the log says the POST is
happening fine.
- Posted by Phlip on August 30th, 2006
imhotep85 wrote:
Use Google Groups to find a better forum for CGI.
Then post some code to it.
What you describe happens all the time, for several bizarre reasons, and an
on-topic group will be much more likely to read your code and help!
--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
- Posted by toby on August 30th, 2006
imhotep85@hotmail.co.uk wrote:
Wrong content-type on the response?
- Posted by KS on August 30th, 2006
You need to put scripts in the "cgi-bin" directory.
- Posted by Phlip on August 30th, 2006
KS wrote:
And change its permissions to "executable" with chmod +w, or with some
remote tool.
Etc... ;-)
--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
- Posted by Ed Prochak on August 30th, 2006
Phlip wrote:
I'm sure it was a typo, but executable is
chmod +x <filenames>
ed
- Posted by Phlip on August 30th, 2006
Ed Prochak wrote:
Hate it when I do that on the command line, too. ;-)
--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
- Posted by goose on August 30th, 2006
Ed Prochak wrote:
With the smiley there, I figured Phlip was just
trying to be extra helpful (hey, cos if we can write
to it, we can fix it for him :-)
goose,
- Posted by Ed Prochak on August 31st, 2006
goose wrote:
You're right. It was a winking smiley.
wink, wink, nudge, nudge, Know what I mean? 8^)
- Posted by Phlip on August 31st, 2006
Ed Prochak wrote:
I was not winking about leading the OP astray. +w is a stupid typo I make
all the time.
The winki referred to the absurdly huge number of ways one can screw up CGI
and get the wrong output, during the setup phase of a web site.
This thread has listed several, inadvertantly including my typo.
--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
- Posted by Peter Shaggy Haywood on September 3rd, 2006
Groovy hepcat imhotep85@hotmail.co.uk was jivin' on 30 Aug 2006
07:29:26 -0700 in comp.programming.
cgi-script problem's a cool scene! Dig it!
Could be any of a number of things.
Is it set up to run CGI scripts from any directory? Is it set up to
run CGI scripts at all? Do you have suexec installed? What are the
permissions on the script? What version of Apache do you have?
--
Dig the even newer still, yet more improved, sig!
http://alphalink.com.au/~phaywood/
"Ain't I'm a dog?" - Ronny Self, Ain't I'm a Dog, written by G. Sherry & W. Walker.
I know it's not "technically correct" English; but since when was rock & roll "technically correct"?