Here is the handout for homework assignment 4.
Here are the tips to help you with the homework:
(New!) You will need a Web server running Apache and PHP to test your code. If you use Linux or Mac OS X, probably your system already has them installed. If you use Windows, you may want to download WampServer, which will install and configure Apache, MySQL, PHP on Windows for you at once.
You can play with the sample program at
http://pomelo.iis.sinica.edu.tw/xmlcourse/sample/post.html
.
You can look at the sample code template here.
You may want to use PHP's "stripslashes" function to help strip those slash characters used as escaping characters in the input string.
Upload your zipped files to the following URL:
http://pomelo.iis.sinica.edu.tw/xmlcourse/upload/
.
Run your program at the following URL:
http://pomelo.iis.sinica.edu.tw/xmlcourse/hw4/YourStudentIdNo/post.html
where YourStudentIdNo
is your student id number.
All your old files at the above YourStudentIdNo
directory
will be lost whenever you upload your program again.
You shall have received your login name and password now! If not, please send an e-mail message to your TA. Note that you cannot change your password!