本文整理汇总了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);
示例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();
}