Error Opening FIle.. PLEASE HELP


I'm having a problem opening a database file (text file to be exact). I'm running a search script that I wrote and tested. The problem is it has problems running on my web server.

The problem is, after I type in the "word" I want to search for, It will run the perl file then output :

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

Could not open test.txt in No such file or directory

I have given execute permissions etc... I am running it on a NT web server. PLEASE HELP ME! :( I can also run other pl files that do not open a file to search for things.

Who is Participating?
Alisher_NConnect With a Mentor Commented:
1) check letters case
2) try to give full path name
3) check if file is locked by another process
ZonedAuthor Commented:
Thank you for these suggestions:
1) check letters case
2) try to give full path name
3) check if file is locked by another process
Unfortunately I have already tried those and still have the problem ;(

more info:
I am using as required by my script. <-does the file have any problems on nt? Anyways, I'm still having problems... PLEASE HELP!

If you send me the script, I can run a syntax checker on it.

I can check the cgi-lib file to if you want.

I can use this same app to set the permissions correctly (just in case there is a problem with that).
ZonedAuthor Commented:
Heh, well I finished my finals this afternoon and had time to sit down and figure what was going on. For some reason it was having problems when I put a url in the script so that it knows where the file would be located. So with some sitting around and thinking, I just pointed it to the directly by using a back-slash, directory, forward-slash, file name to get to the directory.... ex:

Thanks for the help!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.