1
PHP程式設計討論區 / 回覆: 請問有前輩會如何用 PHP 抓 MENCODER的進度呢?
« 於: 2008-05-31 18:32 »這些是exec的參數吧?好像不是shell_exec的喔。
對不起我抄錯了, 是EXEC, 但同樣3個變數也沒有顯示呢~
mencoder 應該是需要長時間運作的東西, 不知道你程式到底有沒有跑到他結束?....
其實我正在弄一個PHPGTK2 的轉檔程式, 就只差顯示進度這一部份~
這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。
這些是exec的參數吧?好像不是shell_exec的喔。
mencoder 應該是需要長時間運作的東西, 不知道你程式到底有沒有跑到他結束?....
<?
$output=shell_exec ('mencoder a.avi -o a.rmvb -oac mp3lame -ovc lavc -noskip',$logging,$state);
while (1){
var_dump($output);
var_dump($logging);
var_dump($state);
}
要跨網段共用的話
可以用switch 串起迴路
或是layer3 的網路設備試試
:lol:
這種問題可以自己去了解、測試,
不要什麼問題都賴皮丟上來問~~
http://tw.php.net/manual/en/function.shell-exec.php
http://tw.php.net/manual/en/function.exec.php
口口口口口
口口口口口
口口口口口
口
口
口
口
口
口
口
口
口
口
口
口
<div id="photo_387" style="position:relative;left:100px;top:150px;width:130px;height:170px;background:red;"></div>
<div id="photo_388" style="position:relative;left:260px;top:150px;width:130px;height:170px;background:red;"></div>
<div id="photo_389"
style="position:relative;left:420px;top:150px;width:130px;height:170px;background:red;"></div>
<div id="photo_390"
style="position:relative;left:580px;top:150px;width:130px;height:170px;background:red;"></div>
<div id="photo_391"
style="position:relative;left:100px;top:350px;width:130px;height:170px;background:red;"></div>
<div id="photo_392"
style="position:relative;left:260px;top:350px;width:130px;height:170px;background:red;"></div>
<div id="photo_393"
style="position:relative;left:420px;top:350px;width:130px;height:170px;background:red;"></div>
<div id="photo_394"
style="position:relative;left:580px;top:350px;width:130px;height:170px;background:red;"></div>
scrollbar 嗎??
<div style="width:200px; height:150px;overflow: auto">
資料顯示超出範圍的話, 就會出現~~
如果沒出現, 先將 width, height 設小一點看看..