当前位置: 首页>>代码示例>>PHP>>正文


PHP show_end函数代码示例

本文整理汇总了PHP中show_end函数的典型用法代码示例。如果您正苦于以下问题:PHP show_end函数的具体用法?PHP show_end怎么用?PHP show_end使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了show_end函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: time

$start_time = time();
show_start($start_time);
$test_cnt = count($test_files);
$test_idx = 0;
run_all_tests($test_files, $environment);
$end_time = time();
if ($failed_tests_file) {
    fclose($failed_tests_file);
}
// Summarize results
if (0 == count($test_results)) {
    echo "No tests were run.\n";
    return;
}
compute_summary();
show_end($end_time);
show_summary();
if ($html_output) {
    fclose($html_file);
}
save_or_mail_results();
if (getenv('REPORT_EXIT_STATUS') == 1 and $sum_results['FAILED']) {
    exit(1);
}
exit(0);
//
// Send Email to QA Team
//
function mail_qa_team($data, $compression, $status = false)
{
    $url_bits = parse_url(QA_SUBMISSION_PAGE);
开发者ID:wgy0323,项目名称:ffmpeg-php,代码行数:31,代码来源:run-tests.php

示例2: explode

            $date = explode("-", $data[1]);
            $result = $db->query("select 1 from Notes");
            //create notes table
            if ($result == false) {
                $db->query("create table Notes (psid int not null, year int not null, month int not null, day int not null, hour int not null, min int not null , second int not null)");
            }
            $db->query("insert into Notes values( '{$data['0']}', '{$date['0']}', '{$date['1']}', '{$date['2']}', '{$date['3']}', '{$date['4']}', '{$date['5']}')");
            $fp = fopen("notes/{$fileName}", "a");
            // Open file for writing
            fwrite($fp, "{$stringVal}\n");
            fclose($fp);
            echo "Note has been logged.<br/>";
        } else {
            echo "No message received.<br/>";
        }
        $_SESSION['option'] = "studentinfo";
        ?>
			<form name = "infoform"
					action = "Assignment2.php"
					method = "POST">
				<input type="hidden" name="psid" value="$studentPsid">
				<input type="submit" value ="Back to Student Info">
			</form>
		<?php 
    }
} else {
    $_SESSION['option'] = 'logging_in';
    show_header();
    get_info();
    show_end();
}
开发者ID:bosstweed11,项目名称:school,代码行数:31,代码来源:Assignment2.php


注:本文中的show_end函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。