日期:2013-04-18  浏览次数:20481 次

  • 前几天做了个大学英语四六级成绩查询系统,一个 phprpc 版本,一个 wap 版本。它们的核心代码都是相同的。下面就是从 etang.cet 获取大学英语四六级成绩的核心代码:

    下载: cetquery.php
    1. function query($examid, $examtype) {
    2.     $examid = trim($examid);
    3.     $examtype = trim($examtype);
    4.     if (!is_numeric($examid)) {
    5.         return '准考证号码必须是数字';
    6.     }
    7.     if (strlen($examid) != 15) {
    8.         return '准考证号码不正确';
    9.     }
    10.     if ($examtype == '1') {
    11.         if ((substr(<