大同大學程式設計競賽 (TTUPC, Tatung University Programming Contest)
Contest provide contestant use this web service print there source code to debug.
This project base on LAMP(Linux, Apache, MySQL, PHP).
-
Import
ContestResult_printService_Backup.sql
into your MySQL database, and change the contest data to yours.- Setting team infomation at table
team
.
- Setting team infomation at table
-
setting up MySQL user and password.
- at
print/include/config.php
andprintadmin/include/config.php
Attention!! DO NOT Create user and set password same as the config file
- at
-
Setting contestant's computer IP
- use each contestant's computer open web page
http://[server_ip]/printadmin/setteam.php
, enter team number then continue, server will auto save this computer IP.
- use each contestant's computer open web page
-
Create the upload folder
- Default upload folder at
/upload
, create the folder as same path.
- Default upload folder at
-
Prepare another Windows computer as the print server.
- require ls, ssh, rsync, ab
- Setup ssh auto login
- setting your server info in
getfile.bat
andauto_print.c
- compile
auto_print.c
and run it.