本文整理汇总了PHP中Results::writeXML方法的典型用法代码示例。如果您正苦于以下问题:PHP Results::writeXML方法的具体用法?PHP Results::writeXML怎么用?PHP Results::writeXML使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Results
的用法示例。
在下文中一共展示了Results::writeXML方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: flush
* Author: Andrew Nelson
* Processes the input from home.html
*/
$action = $_POST["operation"];
if ($action != null && $action != "") {
if ($action == "generate") {
$fileName = $_POST["saveFile"];
$runs = $_POST["runs"];
if ($fileName != null && $fileName != "") {
echo "Generating Your Results. Please be Patient<br />";
ob_flush();
flush();
include "results.php";
$result = new Results();
$result->runTests($runs);
$result->writeXML($fileName);
echo "Your file has been saved to {$fileName}<br />";
echo "<a href = 'home.php'>Run the Tool Again</a><br />";
return;
} else {
echo "You must input a file name!<br />";
}
}
if ($action == "compare") {
$fileOne = $_POST["firstFile"];
$fileTwo = $_POST["secondFile"];
if ($fileOne != null && $fileOne != "" && $fileTwo != null && $fileTwo != "") {
if (!file_exists($fileOne)) {
echo "The first specified file doesn't exist<br/>";
echo "<a href = 'home.php'>Run the Tool Again</a><br />";
return;