The majority of forums are now only available as archives, which means posting/editing is disabled.
The Anything and Everything forum is still open.
Time: 2013-05-19, 03:36am
Please
login or
register to post a reply.
Subject: cgi and ascii · Posted: 2005-05-31, 12:17pm
Rank: Unregistered
Hi i am trying to run cgi script on my local machine but getting this error
The server encountered an internal error or misconfiguration and was unable to complete your request.
if i use the perl test.cgi command i get the script but if i type test.cgi i get
Bad command or file nam
message, code i have used is following
Code:
#!/usr/local/bin/perl
use warnings;
use strict;
use CGI;
$query = new CGI;
print $query->header;
print "<html><head><title>A test</title></head>\n";
print "<body>The test was successful.</body></html>";
path to my cgi-bin is C:\apache\cgi-bin and perl is insltalled on C:\perl
I have installed ws-ftp95 to upload the script in ascii mode but i dont know how to connect with local host i tried to use the tutorial at
http://www.atlas.spaceports.com/~wysardry/ftp/wsftp03a.htm but could not get anywhere can someone help me pls. I have just started cgi and this code i took from the book
thank you
Subject: Re: cgi and ascii · Posted: 2005-07-11, 03:38pm
Rank: ? (29)
Member #: 16569
You have your perl path wrong in the first line.
Forum Quick Jump - Free2Code - Anything and Everything - Suggestions (Archived) - Challenges & Awards (Archived) - Chat (Archived) - Community Projects (Archived) - Bugs (Archived) - Programming Languages - PHP (Archived) - C/C++ (Archived) - Visual Basic (Archived) - Other (Archived) - Java (Archived) - Assembler (Archived) - Perl (Archived) - Python (Archived) - Programming - 3D Graphics (Archived) - Database design and management (Archived) - Physics (Archived) - Encryption and compression (Archived) - Networking (Archived) - Operating Systems (Archived) - Web Development - Graphics (Archived) - Web Design (Archived) - HTML/CSS (Archived) - Website Help/Review (Archived) - Flash (Archived) - Computing & Operating Systems - Hardware/Electronics (Archived) - Security (Archived) - Linux/UNIX (Archived) - Microsoft Windows (Archived) - Apple Mac (Archived) - Other OSs (Archived) - General Computing - Life/Other - Religion (Archived) - Politics/World Events (Archived) - Debate (Archived) - Arts & Entertainment - Books++ (Archived) - Music (Archived) - Movies (Archived) - Humor (Archived) - Games (Archived) - Sports (Archived) - Arts (Archived) - Archives - Tutorial Request (Archived) - Old Bugs 2 (Archived) - Free2Host Hosting (Archived) - Ada (Archived) - Functional Languages (Archived) - Career (Archived) - Old Bugs (Archived)
Pages: 1
Please
login or
register to post a reply.