CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
scipts cannot access a file



Jul 15, 2000, 10:59 PM

Post #1 of 2 (1618 views)
scipts cannot access a file Can't Post

i got a problem which semm's pretty strange and perhaps more a acase for a server newsgroup. when i try to read from or write to a file in my cgi-bin, the script terminated a the position i want to acces the file. i don't know why. i'm using the xitami-webserver.
thnx for answering


Jul 16, 2000, 2:21 PM

Post #2 of 2 (1618 views)
Re: scipts cannot access a file [In reply to] Can't Post

Any one of a number of things can be going on. The range of possiblities could be narrowed if you could tell us how the script is terminating (e.g., are you printing the value of $! if an open fails?)

One common cause: the CGI process may be running as a different user (e.g., "nobody") who doesn't have read or write access into your cgi-bin directory. Printing $! after an open fails should point the way, but if you do use die(), make sure that you've printed a valid response header first.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives