CGI Scripts

Justin Sheehy dworkin at ccs.neu.edu
Sun Feb 6 22:47:07 EST 2000


"Robert Rutkowski" <bobNOSPAM at NOSPAMzippyhelp.com> 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.

-Justin

 




More information about the Python-list mailing list