Using Standford Moss code to check the system in PHP projects

Source: Internet
Author: User

Standford Moss System is the Stanford University's famous code-checking system, it can find out which classmates submitted the code is copied others, so that the results are rejected. It's open to everyone who wants to use the system, so how do you use it in PHP projects?

  1. Download MOSS php file moss.php

    You can access Https://github.com/Phhere/MOSS-PHP   To download moss.php and place it in your third-party extension library

     

  2. Use moss.php

    With the following example code you can simply do a moss quiz

<?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 perform the check of Java code. Unfortunately, however, $userid is needed.

3. Get userid

Since the

is an open system, there is also a way to get its account, that is, to send an email.

Send an email to [email protected] with

RegisterUser
Mail your email address (which may be used as a userid)

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

This article starts at the top for the network, reprint please indicate the source

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

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.