作者wulawu ( )
看板Programming
标题Re: [问题] 要怎麽写网页关机
时间Sat Mar 22 22:08:15 2008
※ 引述《theater (theater)》之铭言:
: 我想利用网页关闭我的电脑
: 不知道要怎麽写
: web server是在我电脑上的
: 请高手指引一下
用Linux + PHP
system("shutdown -p now");
web server使用者要有可以关机的权限
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.105.8.9
1F:推 theater:可是我要用windows的系统218.160.102.246 03/22 22:12
2F:→ theater:单就程式码而言能达到吗218.160.102.246 03/22 22:13
3F:→ theater:可以的话要怎麽下手218.160.102.246 03/22 22:13
4F:→ theater:我想过用java然後呼叫api218.160.102.246 03/22 22:13
5F:→ theater:只是不常写程式不知道java有无支援这样218.160.102.246 03/22 22:14
6F:推 easy0519:为什麽不使用远端连线? 211.23.144.24 03/22 22:18
7F:推 theater:有些地方会档,不能用远端桌面218.160.102.246 03/22 22:18
8F:→ easy0519:否则得用其他语言开发dll,在使用网页 211.23.144.24 03/22 22:18
9F:→ easy0519:去 call你写的函式库呢? 211.23.144.24 03/22 22:19
10F:→ theater:我不会开发dll,有别的方法吗218.160.102.246 03/22 22:20
11F:→ theater:开发dll简单吗,我可以现学现用218.160.102.246 03/22 22:20
※ theater:转录至看板 Web_Design 03/22 22:29
12F:推 qrtt1:cmd /c shutdown -r 220.133.80.216 03/22 23:06
13F:→ qrtt1:-r是重开, 关机是什麽忘了:P 220.133.80.216 03/22 23:06
14F:推 zeqw: -s 是关机140.138.252.136 03/22 23:10
15F:→ askagod:shutdown -s -t -3 三秒关机... 59.105.254.141 03/23 21:44