Solved

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

Posted on 2000-03-20
5
238 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
Comment Utility
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
Comment Utility
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
Comment Utility
you also need the file to be set as executable.
0
 
LVL 2

Accepted Solution

by:
a198298 earned 50 total points
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

763 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

9 Experts available now in Live!

Get 1:1 Help Now