Open file works under DOS, not under server 
Author Message
 Open file works under DOS, not under server

Nathan,

I'll bet you are using a UNIX as webserver - just try to change the
forward slash into a backslash

Quote:


> : Why does the following code work fine under DOS, but doesn't appear
> : to work under the O'Reilly Web Server.  From the server, the file
> : doesn't appear to read in any data. Other CGI's seem to work OK.

> : $file = "ratedata/comments.txt";

> Use the absolute path to the file.  CGI doesn't know where it is.

> --
> Nathan V. Patwardhan




Sat, 13 May 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Open file works under DOS, not under server

2. Open file works under DOS, not under server

3. Open file works under DOS, not under server

4. Simple DOS/Win95 originated Perl script not working when loaded in the UNIX Server

5. Simple DOS/Win95 originated Perl script not working when loaded in the UNIX Server

6. Send mail script not working in 2nd server but working in 1st server

7. Send mail script not working in 2nd server but working in 1st server

8. Increasing max open files works in C, not perl

9. glob not working in dos

10. open read/write not working in Perl5

11. open w/ pipe not working

12. Open to Pipe does not work in cron

 

 
Powered by phpBB® Forum Software