<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>52微笑Blog &#187; 远程</title>
	<atom:link href="https://www.52smile.cn/?feed=rss2&#038;tag=%E8%BF%9C%E7%A8%8B%E6%96%87%E4%BB%B6%EF%BC%8C%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%EF%BC%8Cphp" rel="self" type="application/rss+xml" />
	<link>https://www.52smile.cn</link>
	<description>记录生活点滴，分享精彩缤纷！</description>
	<lastBuildDate>Mon, 15 Jun 2015 13:33:12 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>第四期：PHP用手机关闭电脑</title>
		<link>https://www.52smile.cn/?p=1198</link>
		<comments>https://www.52smile.cn/?p=1198#comments</comments>
		<pubDate>Sun, 09 Jun 2013 01:01:37 +0000</pubDate>
		<dc:creator><![CDATA[子涛]]></dc:creator>
				<category><![CDATA[php代码汇]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[远程]]></category>

		<guid isPermaLink="false">http://www.52smile.cn/?p=1198</guid>
		<description><![CDATA[<a href="https://www.52smile.cn/?p=1198"><img width="640" height="225" src="http://www.52smile.cn/wp-content/uploads/2013/06/everycode2.jpg" class="attachment-post-thumbnail wp-post-image" alt="everycode2" itemprop="image" lazyload="1" /></a>每日代码汇第四期：用PHP实现手机关闭电脑 用法：复制代码新建.php文件放在你的web项目文件夹 适合有手机和电脑，用wifi的php web开发。方便关闭你的电脑（尤其在你想睡觉时），适合局域网 代码： 12345678910111213141516171819202122232425262728293031323]]></description>
				<content:encoded><![CDATA[<a href="https://www.52smile.cn/?p=1198"><img width="640" height="225" src="http://www.52smile.cn/wp-content/uploads/2013/06/everycode2.jpg" class="attachment-post-thumbnail wp-post-image" alt="everycode2" itemprop="image" lazyload="1" /></a><p>每日代码汇第四期：用PHP实现手机关闭电脑</p>
<p>用法：复制代码新建.php文件放在你的web项目文件夹</p>
<p><em>适合有手机和电脑，用wifi的php web开发。方便关闭你的电脑（尤其在你想睡觉时），适合局域网 </em></p>
<p><strong>代码：</strong></p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt; !DOCTYPE html&gt;<br />
&lt;html lang=&quot;zh-CN&quot;&gt;<br />
&lt;head&gt;<br />
&nbsp; &nbsp; &lt;title&gt;computer-manager&lt;/title&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
&nbsp; &nbsp; &lt;p&gt;<br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$shutdown</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'shutdown'</span> <span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'shutdown -s -t 0'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'restart'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'shutdown -r'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'logout'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'shutdown -l'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$cmdk</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cmd'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$cmd</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$shutdown</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$cmdk</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">system</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cmd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 执行操作</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
<br />
&nbsp; &nbsp; &lt;/p&gt;<br />
<br />
&nbsp; &nbsp; &lt;form action=&quot;#top&quot; method=&quot;post&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;choose you want.&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;cmd&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;shutdown&quot; selected=&quot;selected&quot;&gt;shutdown/ go to sleep.&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;restart&quot;&gt;restart computer/ ok, if no password.&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;logout&quot;&gt;logout/ you don't want this.&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;submit&quot; /&gt;<br />
&nbsp; &nbsp; &lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</div></td></tr></tbody></table></div>
<p>来源：http://www.oschina.net/code/snippet_1024009_20446(oschina.net)</p>
<p>生产：邪云子</p>
<p>主页：http://my.oschina.net/xieyunzi</p>
]]></content:encoded>
			<wfw:commentRss>https://www.52smile.cn/?feed=rss2&#038;p=1198</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
