<?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>运达&#039;s  blog &#187; cmd</title>
	<atom:link href="https://www.yunda51.com/?feed=rss2&#038;tag=cmd" rel="self" type="application/rss+xml" />
	<link>https://www.yunda51.com</link>
	<description>运达的博客</description>
	<lastBuildDate>Wed, 12 Nov 2025 07:58:26 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.19</generator>
	<item>
		<title>yiic命令时提示“php.exe”不是内部或外部命令解决办法</title>
		<link>https://www.yunda51.com/?p=1351</link>
		<comments>https://www.yunda51.com/?p=1351#comments</comments>
		<pubDate>Fri, 08 Aug 2014 07:27:49 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[php技术]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[php.exe]]></category>
		<category><![CDATA[yii]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1351</guid>
		<description><![CDATA[在CMD中运行 yiic webapp work 如果报’php.exe’不是内部命令 是这样的：原因是Yii<a href="https://www.yunda51.com/?p=1351" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<div class="buy shortcodestyle">
在CMD中运行 yiic webapp work 如果报’php.exe’不是内部命令<br />
是这样的：原因是Yii自带的yiic.bat找不到php.exe<br />
解决方法：<br />
因为没有加入  环境变量，所以无法直接执行php.exe<br />
右击“我的电脑-》属性-》高级->环境变量-》系统变量-》PATH-》编辑”<br />
在变量值中添加以下2个执行文件，方便直接调用执行<br />
变量值：C:\wamps\bin\php\php5.3.8\;E:\php\PHPnow\htdocs\yii\framework\</p>
<p>或者：</p>
<p>原因是 Yii 自带的yiic.bat 找不到php.exe.<br />
用文本编辑器打开yii/framework/yiic.bat修改<br />
if "%PHP_COMMAND%" == "" set PHP_COMMAND= php.exe<br />
改为<br />
if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:\wamp\bin\php\php5.3.10\php.exe<br />
然后在CMD中重新运行 yiic webapp work就ok了！
</p></div>
<p>如图所示（表示成功）：<a href="http://www.yunda51.com/wp-content/uploads/2014/08/1.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/08/1.jpg" alt="" title="1" width="630" height="360" class="alignnone size-full wp-image-1362" /></a><br />
转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/1351.html">http://www.yunda51.com/1351.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1351</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
