Web page not able to find CGI program file
2 Attachment(s)
I was trying to invoke a CGI program via an html file.
But got stuck for the error "file not found". I am trying the same program as in the following site: Please find below the html file: Code:
<html> <head> in the link above) the path of the CGI program file. The path is now: http://localhost/~ravbholua/emp_add.pl When I click on Add button, I get error that 'file not found'. Please see attachment. Please have a look at the form (attachment). Why it is not finding the file which is in the home directory of username "ravbholua"? These 2 attachments w'd help you to catch the issue. |
file:// in your address bar would indicate your browser is opening the files from your local file system and not through a web server.
You'll need to have all this on a web server instance otherwise you'll find it won't work. |
@TenTenths
Thank you. It too striked me that as the address bar mentions file:// but the link I sent mentions http://localhost, so I sent you the attachment thinking if that is a problem, one w'd catch. |
Quote:
The domain of my server is ravi.com I ran the same html there but I am getting the same output. When I opened emp_form.html, the url showed: Code:
file:///home/ravbholua/emp_form.html All files are there on server. if you say, I w'd give you IP address and credentials so that you can login and assist me to resolve. Also one thing, it's my VPS and you had told that it w'd work on web server. I am not very clear regarding this. |
Quote:
Quote:
|
Quote:
that doc has the line: Code:
<form action=”http://localhost/~sumit/cgi-bin/emp_add.pl” method=get> Code:
<form action=”http://localhost/~ravbholua/emp_add.pl” method=get> The link says: Code:
open (OUTFILE, “>>/home/sumit/public_html/emp_out.lst”) ; Code:
open (OUTFILE, “>>/home/ravbholua/emp_out.lst”) ; Quote:
I like your joke. <moderated> You have sudo powers. |
Quote:
I have no intention of accessing ANY server and I take no responsibility for your server being exploited because you've posted login details here. |
Quote:
HaHaHaHa!!! (This time I am joking) Don't worry my friend. Nothing happened. No one logged in using the credentials. I have disabled it. Now, no one can log. O.K. well you didn't log there but any solution you have come up with my dear friend. |
All times are GMT -5. The time now is 08:36 PM. |