本文整理汇总了PHP中flush_errors函数的典型用法代码示例。如果您正苦于以下问题:PHP flush_errors函数的具体用法?PHP flush_errors怎么用?PHP flush_errors使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了flush_errors函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: http_redir
}
#blabla
if (!errors()) {
// do the job
// recuperer l'idRel fraichement créé
http_redir('/project/view.php?id_rel=FIXME');
}
} else {
append_error('Malformed form, please use the correct html page');
}
}
?>
<h1>Add a new release to the project 'GraphTool'</h1>
<?php
flush_errors();
?>
<form>
<table>
<tr><th>Version name</th><td><input type="text" name="version" value="<?php
echo isset($_GET['version']) ? $_GET['version'] : "";
?>
"/></td></tr>
<tr><th>Release Date</th><td>
<input type="text" name="year" size="4"
/>-<input type="text" name="month" size="2"
/>-<input type="text" name="day" size="2"></td></tr>
<tr><th>Status</th><td>
<select name="status">
<option selected="selected">Beta</option>
示例2: header_box
break;
case '500':
$short = 'Error 500 : Internal Server Error';
$long = 'The server encountered an unexpected condition which prevented it from fulfilling the request.<br/>Please contact the <a href="mailto:www@igoan.org">webmaster</a>.';
break;
default:
$short = 'Error';
$long = 'Your action has generated an error.';
}
}
header_box('Igoan :: ' . $short);
?>
<div id="main">
<div class="abstract error"><?php
if (errors()) {
flush_errors(0);
?>
<p>
Your action has generated a fatal error and had been stopped.
</p><?php
} else {
?>
<h4><?php
echo $short;
?>
</h4>
<p><?php
echo $long;
?>
</p>
<?php