Solved

how to run CGI script without.......

Posted on 2000-03-20
5
239 Views
Last Modified: 2013-12-25
dear sir....

i wanted to make CGI script but when i try to run it on the web... it show all the texts.... is the CGI script must be run under the \cgi-bin\ directory?

if that is the case what should i do, so i can test it my cgi script?

all is there a way to can the free cgi-bin?

thanks,
jeff.
0
Comment
Question by:jeffreykwok
5 Comments
 

Expert Comment

by:akf
ID: 2639069
It really depends on how your webmaster has set up the web server.

Usually, /cgi-bin is a location the web server recognizes as containing scripts. It is also very common to use .cgi as a suffix to identify scripts. So, it would be worth changing the name of the script, for example call it "myscript.cgi" instead of "myscript.pl".

If you still see the text of the script, you need to ask your webmaster where you can put a CGI script.

0
 
LVL 16

Expert Comment

by:maneshr
ID: 2640276
for you to run a CGI script, you must have a web server that supports CGI installed on the machine. There are loads & loads of such free web servers on various platforms.

for the windows platform i would suggest Sambar web server (www.sambar.com). Besides being free, it also supports CGI scripting using PERL, C, C++. As if thats not enough, it very simple to install and needs little or no configuration before you code your first CGI!!
0
 
LVL 8

Expert Comment

by:jhurst
ID: 2642028
you also need the file to be set as executable.
0
 
LVL 2

Accepted Solution

by:
a198298 earned 50 total points
ID: 2719377
Sign Up an Account with VirtualAve
a href="www.virtualave.net">Free Web Space with CGI Access"</a><b><b><b> You do not even need to chmod the files with this provider, and the scripts can be uploaded anywhere.
0
 
LVL 8

Expert Comment

by:jhurst
ID: 2719861
if a198... has it right and it is just a matter that your current server does not support cgi then:
1) find out if it is an option
2) look for an ISP - IMHO virtual Ave is a VERY POOR choice
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
EXCHANGE 2007, SCRIPTS 67 75
Scripting vs. Programming languages 25 151
Groovy:unable to resolve class error 2 70
Access Control Entries lost in Windows folders 3 48
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now