W4-The completion of CGI
Especially thanks to my good friend Jay, I finally realized the function of my CGI project. Before I can not understand the code for IO in Python but I really want to record what the user enter into my form. I went to Jay and saw whether he could solve this problem. Jay is a hard working person who read a lot of Python recently, he knew more than mine. He explained patiently to me the meaning of code for IO. With the help of him, I work out the function for record the user input into the .TXT file. This is also one of my purposes for keeping good relationship with me friends through my personal website. I work for several hours; it work in my lap top environment (Apache+Python2.5) very well, but as I put it to CityU server, exception showed for some unknown reason. I tried to solve this problem. In fact we should pay attention to the Path we set the .TXT file, what is different is that the file was automatically created in my lab top environment but it can be created in CityU server. I should create the .TXT file before I run the program. It also seems that you can not create the file everywhere you like; the best way to put the file is under cgi-bin document. Maybe this is the conflict of different systems. As file is created, I set it readable and writeable by using chmod +x file name or right click the property. Again show my sincere thanks to Jay.
PYTHON: http://www.python.org/
PYTHON: http://www.python.org/
