How PHP is put into the MVC framework using parts of speech

Source: Internet
Author: User


The root directory test is placed directly on the site, and in the thinkphp directory, and the class compression package "Util.rar" is extracted to \thinkphp\library\org\util

code block

code block syntax follows the standard markdown code, for example:

 <?phpnamespace org\util;//Strict Development mode Ini_set (' display_errors ', ' on '); Ini_set (' Memory_limit ', ' 64M '); error_reporting (E_all); $t 1 = $ntime = Microtime (true); $endtime = ' no action performed, no statistics!    '; function Print_memory ($RC, & $infostr) {global $ntime;    $cutime = Microtime (true);    $etime = sprintf ('%0.4f ', $cutime-$ntime);    $m = sprintf ('%0.2f ', Memory_get_usage ()/1024/1024); $infostr. = "{$RC}: &nbsp; {$m}    MB: {$etime} seconds <br/>\n "; $ntime = $cutime;} Header (' content-type:text/html; Charset=utf-8 '), $memory _info = ';p rint_memory (' No action ', $memory _info); require_once '/thinkphp/library/org/util/phpanalysis.class.php '; $str = (Isset ($_post[' source ') "$_post[' source '): '); $ Loadtime = $endtime 1 = $endtime 2 = $slen = 0; $do _fork = $do _unit = true; $do _multi = $do _prop = $pri _dict = false;if ($str    ! = ') {//_fork processing $do = Empty ($_post[' do_fork '))? False:true; New word recognition $do _unit = Empty ($_post[' do_unit ')?    False:true; Multi-slice $do _multi = empty ($_post[' Do_multi ')]) ?    False:true; POS callout $do _prop = Empty ($_post[' Do_prop ')?    False:true; Do you want to preload all entries $pri _dict = empty ($_post[' pri_dict ')?    False:true;    $tall = Microtime (true);    Initialize class Phpanalysis:: $loadInit = false;    $pa = new Phpanalysis (' Utf-8 ', ' utf-8 ', $pri _dict);    Print_memory (' Initialize object ', $memory _info);    Loaded in dictionary $pa->loaddict ();        Print_memory (' loaded into the basic dictionary ', $memory _info);    Execute word breaker $pa->setsource ($STR);    $pa->differmax = $do _multi;    $pa->unitword = $do _unit;    $pa->startanalysis ($do _fork);    Print_memory (' Execute participle ', $memory _info);    $okresult = $pa->getfinallyresult ("', $do _prop);    Print_memory (' Output participle result ', $memory _info);    $pa _foundwordstr = $pa->foundwordstr;    $t 2 = Microtime (true);    $endtime = sprintf ('%0.4f ', $t 2-$t 1);    $slen = strlen ($STR);    $slen = sprintf ('%0.2f ', $slen/1024); $pa = ';} $teststr = "In January 2010, at CES, Lenovo will showcase a new arm-based architecture that could be the first of its kind in the arm-based consumer electronics of the big Four, and also means that, in a trend of mobile internet and industry convergence, Intel, the traditional PC chip Overlord, is facing challenges. 1112th, Lenovo Group vice president and China president Charlie to the newspaper confirmed that Lenovo based on the arm architecture of new products are in preparation. Intel spokesman Meng Yicha said it was inconvenient to comment on third-party partner information. Confrontation arm insiders revealed that on November 5, ARM senior vice President Landrew visited Lenovo Research Institute, visited Lenovo responsible for consumer products, further discussion of new products based on ARM architecture. Arm is a British chip design company, almost 95% of the world's mobile phones are based on arm design chip. It is reported that this is a high-pass chip (based on the arm architecture) of new products, Qualcomm Product marketing director Qian Zhijun said that Lenovo is very cautious about the project, the product details are not easy to disclose. Charlie told reporters that the Lenovo Institute is considering a variety of options, this ARM architecture based new product application neighborhood diversification, not to replace the traditional PC, but more rich to meet the needs of users. At present, customer research has not been completed, "design, research and development more forward-looking, and ultimately to see the market, user acceptance degree." ”";? ><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

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.