Skip to content

Commit 6b1ae22

Browse files
authored
Add files via upload
1 parent 0c046c6 commit 6b1ae22

9 files changed

+1845
-0
lines changed

Diff for: CountResult.html

+63
Large diffs are not rendered by default.

Diff for: cache.php

+877
Large diffs are not rendered by default.

Diff for: debug.php

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
?>

Diff for: entrance.php

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
/**
4+
* 多路径交通流分配 - entrance.php - 入口文件
5+
*
6+
* Author:resuly
7+
* Date: 2014-4-28
8+
*
9+
*/
10+
11+
// 设置输出头部信息
12+
header("Content-type: text/html; charset=utf-8");
13+
14+
set_time_limit(0);
15+
16+
$GetNodesName = $_GET['name'];
17+
18+
$text = file_get_contents( 'http://localhost/flow/handle.php?name='.$GetNodesName );
19+
20+
// var_dump($text);
21+
22+
/**
23+
* 记录计算过程部分,页面执行一次增加记录一次,连续写入CountResult.txt文件
24+
*/
25+
26+
//文件名
27+
$file = "CountResult.html";
28+
29+
//写入文件
30+
$file_pointer = fopen($file, "a+");
31+
fwrite($file_pointer, $text);
32+
fclose($file_pointer);
33+
34+
echo "$GetNodesName 已计算完成~ <br>";
35+
echo "<script type=\"text/javascript\">
36+
setTimeout(\"closeWin()\",300);
37+
function closeWin() {
38+
window.opener=null;window.open('','_self');window.close();
39+
}
40+
</script>";
41+
42+
?>

0 commit comments

Comments
 (0)