CGI Scripts

Justin Sheehy dworkin at
Mon Feb 7 04:47:07 CET 2000

"Robert Rutkowski" <bobNOSPAM at> writes:

> My problem is that the script returns a result via the print command. {print
> `count()`}, but when I try to run the script on my server, I get no results,
> just a blank page.

>     count = open('counter.log', 'r+')

Try giving the absolute path to the file instead of just the base
filename.  Chances are that the web server's current working directory
when it executes the script is not the directory containing the file.



More information about the Python-list mailing list