Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic CGI Help

Status
Not open for further replies.

mcvpjd3

IS-IT--Management
Apr 2, 2001
118
GB
OK, this may be long so please bear with me as I'm going mad trying to get this working!!!

I'm trying to get a file uploader working from one of my web pages. I've downloaded a few CGI scipts but can't get them working. The problem is not the scripts, but getting the browser to see the scripts in the first place.

Here's where I am.

My HTML page is I've ftp'd scripts and stuff to the CGI server and CHMOD'd everything to 755. When I telnet to the server and do a PWD from the CGI-BIN directory it gives me a path of /files/home2/somewhere/cgi-bin.

When I write my HTML what do I use to run the CGI?

If I use the Explorer gives me the error 403;

You are not authorized to view this page

If I link using just CGI-BIN It gives me a 404 error

Can anyone help please before I go totally insane???

Thanks Patrick

FLAMEWAR.GIF
 
Have you tried using just "/cgi-bin/program.cgi"? You should never use the full ACTUAL path in the url, and if you're on the same domain you shouldn't need the full url either. If not on the same server you'll need to use " Make sure your using cgi-bin and not CGI-BIN, especially on *nix servers - they're case sensitive. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
I've tried that, and I get a 404 error (and using lowercase).

I've tried and I've even tried linking from my html to where cgi.somewhere.plus.com is the cgi server I log into to upload the files!!!

This is driving me NUTS.

Thanks for your reply :)

Patrick Patrick

FLAMEWAR.GIF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top