Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

cgi script not work, copy of letter pasted below

Posted on 1998-12-29
2
Medium Priority
?
210 Views
Last Modified: 2013-12-25

Below is a copy of the email I sent to the site where I got this script. I hope you can figure out the question from it,
if not send me a email.



Subject:
            could you check my free for all link files, I cant get them to work
       Date:
            Tue, 29 Dec 1998 22:00:12 -0500
       From:
            John Hewett <johnh619@mail.idt.net>
Organization:
            self
         To:
            mattw@worldwidemart.com


http://thor.prohosting.com/~john314/links.html
and
http://thor.prohosting.com/~john314/linkscgi.txt
The txt file is really my cgi file, I renamed it so you could look
at it. I do have it uploaded to the cgi-bin directory also.
I did chmod and the html file is set to 777 and the cgi file is
set to 755. Also I tried to get it working using the pl extension
instead of the cgi also and it did not work. So that leaves the
file paths in the cgi file and the file path in the html file. I did
enter them as I thought you meant; could you check them all. I really
spent a lot of time on it and no luck. So I tried the simplest situation
in which I only changed the minimum to get it to work, meaning I left
the categories exactly like I found them; so I figured this would
work but no luck. Prohosting is the only free web space host that
allowed any bodies cgi programs. Below is the paragraph in an email
they sent me. It looks like it is okay to use any bodies cgi scripts
according to this. Of course I uploaded to thor.prohosting.com/
/usr/home/~john314/html which is not where they come out at after
uploading. If you want to go over to free.prohosting.com and read
what they say I still think it indicates that I can use any ones
cgi scripts.

CGI

Put your cgi scripts in the html/cgi-bin directory.  Your directory is
located in /usr/home/yourusername.  If you are having problems with your
CGI scripts, make sure you upload them in ASCII format, not binary, set
the permissions correctly(usually chmod a+rx or chmod 755)...

Also I found this:

CGI STUFF

perl - /usr/bin/perl
date - /bin/date
Check the FAQ at http://www.prohosting.com/cgi_faq.html if you have
problems.  Its meant for our virtual
hosting clients, but the same ideas apply to your free account.

I changed the usr/bin/perl statement at the top of the cgi file like
it said. I uploaded in ASCII mode like it said and still I can not get
it working.

Sincerely John Hewett
0
Comment
Question by:johnh619
2 Comments
 
LVL 7

Accepted Solution

by:
HalldorG earned 150 total points
ID: 1830319
I suggest you do not access teh filename as /links.txt
but rather as "$ENV{'DOCUMENT_ROOT')/links.txt"

as you hardly have access to the root file system
0
 

Author Comment

by:johnh619
ID: 1830320
HalldorG, I am not completely certain that I understand. Where
is the file having the extension .txt. Are you referring to the
one I made of the cgi file? Can you be a bit more explicit?
Thanks
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

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

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

580 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