示例#1
0
文件: test.php 项目: ety001/detect
function test_vlog()
{
    vprint('======test vlog start======');
    $a = array('a' => 232, 'b' => 'dfsdf');
    $filename = vlog('test_vlog', $a);
    vprint('Log file is ' . $filename);
    vprint('======test vlog end======' . "\n");
}
<tr><td style="font-family:Arial;font-size:14px;color:#000000;">DIRECTIONS:
Have student read the list words in each group below.  Words are repeated randomly over the rows.
Do this at least once a day.  This sequential repetition will greatly accelerate mastery of even difficult to learn words.</td></tr>

</table>';
    $group[1] = $wg0;
    $group[2] = $wg1;
    $group[3] = $wg2;
    for ($kk = 1; $kk < 4; $kk++) {
        $stemp = "";
        $myArray = preg_split("/\\s/", $group[$kk]);
        $numwords = count($myArray);
        //print "\n<br>split returns length:". count($myArray) . " str:". $group[$kk] . ":";
        $looptotal = 80 * 12 / $mysize;
        vprint("number of words, wg0:" . $numwords . " looptotal: " . $looptotal);
        vprint("---------------- font:" . $myfont . " size: " . $mysize);
        for ($ii = 0; $ii < $looptotal; $ii++) {
            // gen random number
            $dex = rand(0, $numwords);
            $stemp .= $myArray[$dex] . "   ";
            //vprint("num: ".$dex);
        }
        $tabletemplate = '<table align="center" width=AUTOWIDTH><tr><td><font face="Times New Roman" font-size="16px" color="#33cc33">TITLE</font></td></tr><tr><td style="font-family:FACE;font-size:SIZE;color:#000000;">STUFF</td></tr></table>';
        $outstr = str_replace("STUFF", $stemp, $tabletemplate);
        $outstr = str_replace("FACE", $myfont, $outstr);
        $outstr = str_replace("SIZE", $mysize, $outstr);
        $mywidth = 400 + 5 * $mysize;
        $outstr = str_replace("AUTOWIDTH", $mywidth, $outstr);
        $outstr = str_replace("TITLE", "Group " . $kk . " Words: " . $group[$kk], $outstr);
        print $outstr;
    }
示例#3
0
<?php

require_once "../functions.php";
vprint($_POST);