mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-18 19:39:43 +08:00
修改php
This commit is contained in:
@ -25,4 +25,5 @@ while(!feof($proc)){
|
|||||||
@ flush();
|
@ flush();
|
||||||
}
|
}
|
||||||
echo "<br>";
|
echo "<br>";
|
||||||
echo "finish";
|
echo "finish";
|
||||||
|
echo '<a href=/config/position.html>回到首页</a>';
|
@ -42,4 +42,4 @@ while(!feof($proc)){
|
|||||||
@ flush();
|
@ flush();
|
||||||
}
|
}
|
||||||
echo 'FINISH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!';
|
echo 'FINISH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!';
|
||||||
echo '<a href=/fileup/position.html>回到首页</a>';
|
echo '<a href=/config/position.html>回到首页</a>';
|
@ -1,48 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
$a=$_GET["p"];
|
|
||||||
|
|
||||||
if ($a==0)
|
|
||||||
{
|
|
||||||
echo "error";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
set_time_limit(0);
|
|
||||||
ob_end_clean();//清空(擦除)缓冲区并关闭输出缓冲
|
|
||||||
ob_implicit_flush(1);//将打开或关闭绝对(隐式)刷送。绝对(隐式)刷送将导致在每次输出调用后有一次刷送操作,以便不再需要对 flush() 的显式调用
|
|
||||||
//echo shell_exec("D:\\03MyGit\\linux\\movingliner\\cmake-build-debug-mingw\\movingliner.exe");
|
|
||||||
//$cmd = 'ping 127.0.0.1';
|
|
||||||
//sy""
|
|
||||||
system("sudo pkill movingliner");
|
|
||||||
Echo $a;
|
|
||||||
$cmd = 'sudo /home/pi/liner/cmake-build-linux_release/movingliner '.$a;
|
|
||||||
|
|
||||||
while(@ ob_end_flush());
|
|
||||||
|
|
||||||
$proc = popen($cmd, 'r');
|
|
||||||
|
|
||||||
|
|
||||||
while(!feof($proc)){
|
|
||||||
echo fread($proc, 4096);
|
|
||||||
@ flush();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<p><a href="/fileup/calibrate.php?p='.$a.'">定标</a></p>';
|
|
||||||
echo '<a href=/fileup/position.html>回到首页</a>';
|
|
||||||
|
|
||||||
/*
|
|
||||||
$i = 100;
|
|
||||||
while ($i<1000) {
|
|
||||||
++$i;
|
|
||||||
//部分浏览器需要内容达到一定长度了才输出
|
|
||||||
if ($i === 103) {
|
|
||||||
echo"<p>hello word".$i."</p>";;
|
|
||||||
} else {
|
|
||||||
echo"<p>hello word".$i."</p>";;
|
|
||||||
}
|
|
||||||
sleep(1);
|
|
||||||
|
|
||||||
}
|
|
||||||
*/
|
|
Reference in New Issue
Block a user