Use Standford Moss code to check the system in the PHP project, standfordmoss

Source: Internet
Author: User

Use Standford Moss code to check the system in the PHP project, standfordmoss

Standford Moss is a well-known code re-checking system of Stanford University. It can identify the students who submitted the code and copied the code to reject the submitted results. It is open to anyone who wants to use the system. How can I use it in a PHP project?

  1. Download Moss php file moss. php

    You can access the https://github.com/Phhere/MOSS-PHP to download moss. php and put it in your third-party extension Library

     

  2. Use moss. php

    With the following sample code, you can simply perform a moss test.

<? Php
Include ("moss. php ");
$ Userid = ""; // Enter your MOSS userid
$ Moss = new MOSS ($ userid );
$ Moss-> setLanguage ('java ');
$ Moss-> addByWildcard ('test /*');
$ Moss-> addBaseFile ('example. Java ');
$ Moss-> setCommentString ("This is a test ");
Print_r ($ moss-> send ());
?>

This Code uses moss. php to check the Java code. Unfortunately, $ userid is required.

3. Get userid

Since it is an open system, it is also possible to obtain its account, that is, to send an Email.

Send Email to moss@moss.stanford.edu, which contains

Registeruser
Mail your Email address (may be used as userid)

The next step is to wait for a reply. With userid, you can use Moss happily.

This article is first published on top search. For more information, see the source.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.