dheerajrav
January 14th, 2011, 12:24 PM
Hello,
I am using python as a cgi for a simple game that i'm planning to run on a website. It requires the user to enter his name and age. This is saved in a file newly created in his/her name.
However, I'm getting this error
<!-- The above is a description of an error in a Python program, formatted
63 for a Web browser because the 'cgitb' module was enabled. In case you
64 are not reading this in a Web browser, here is the original traceback:
65
66 Traceback (most recent call last):
67 File "/var/www/webprog.cgi", line 51, in <module>
68 main()
69 File "/var/www/webprog.cgi", line 44, in main
70 file_data(form["name"].value, form["age"].value)
71 File "/var/www/webprog.cgi", line 33, in file_data
72 fout=os.open("list/tmp.txt",os.O_CREAT,0777)
73 OSError: [Errno 13] Permission denied: 'list/tmp.txt'
74
75 -->
Any idea why this is happening??
I am using python as a cgi for a simple game that i'm planning to run on a website. It requires the user to enter his name and age. This is saved in a file newly created in his/her name.
However, I'm getting this error
<!-- The above is a description of an error in a Python program, formatted
63 for a Web browser because the 'cgitb' module was enabled. In case you
64 are not reading this in a Web browser, here is the original traceback:
65
66 Traceback (most recent call last):
67 File "/var/www/webprog.cgi", line 51, in <module>
68 main()
69 File "/var/www/webprog.cgi", line 44, in main
70 file_data(form["name"].value, form["age"].value)
71 File "/var/www/webprog.cgi", line 33, in file_data
72 fout=os.open("list/tmp.txt",os.O_CREAT,0777)
73 OSError: [Errno 13] Permission denied: 'list/tmp.txt'
74
75 -->
Any idea why this is happening??