<?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>寂静的深海 &#187; SideBySide</title>
	<atom:link href="http://www.deepseath.com/?feed=rss2&#038;tag=sidebyside" rel="self" type="application/rss+xml" />
	<link>http://www.deepseath.com</link>
	<description></description>
	<lastBuildDate>Mon, 29 Jan 2024 09:55:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>关于“找不到附属汇编 Microsoft.VC90.CRT，上一个错误是 参照的汇编没有安装在系统上。”的解决</title>
		<link>http://www.deepseath.com/?p=858</link>
		<comments>http://www.deepseath.com/?p=858#comments</comments>
		<pubDate>Thu, 16 Jun 2011 18:28:52 +0000</pubDate>
		<dc:creator>Deepseath</dc:creator>
				<category><![CDATA[日积月累]]></category>
		<category><![CDATA[bat]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SideBySide]]></category>
		<category><![CDATA[VC9]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[计划任务]]></category>

		<guid isPermaLink="false">http://www.deepseath.com/?p=858</guid>
		<description><![CDATA[一个项目需要在Win系统用计划任务执行PHP，写了个批处理bat利用php-cgi.exe进行执行PHP文件，由于在服务器运行为了不影响服务器既有的PHP配置信息，同时也是考虑未来的移植性还有性能问题，自己弄了个精简了的PHP运行环境。 可在Win下死活也是执行不了，运行批处理直接闪一下就啥都木有咧，于是为了看具体的状态，使用cmd命令行模式去运行批处理文件，结果提示“系统无法执行指定的程序。”，悲催了，难道朋友将服务器给阉割导致不能执行.bat文件？ 正咬牙切齿的时候决定再尝试一下确定到底是什么问题。这一次直接在cmd中执行php，运行php.exe -c php.ini -i（指定同php.exe相同目录下的php.ini作为php的配置文件，并且显示phpinfo信息），回车后，竟然还是那句该死的“系统无法执行指定的程序。”，看来不是系统运行不了bat批处理，是干脆不能执行php.exe，咋回事捏？ 再次尝试寻找问题的症结，这次尝试在cmd运行服务器原有的php.exe，奇迹出现了，竟然可以正常执行并且返回了phpinfo信息。这下看来应该是我自己所谓的精简的问题，有点晕~~ 纠结的时候突然想到，服务器运行的是PHP 5.2.x版本，而我自己打包的是PHP 5.3.x，貌似是用VC9编译的，而php 5.2是用VC6编译的，看来应该是服务器没有安装Microsoft Visual C++运行库导致的，这只是一个初步想法，为了保险尝试看看系统日志有没有留下啥鸟东西（一般微软自家的东西出错了都会老实的写日志的）。 在系统日志中发现了来源均为“SideBySide”，事件ID一个：32，两个59。 事件ID为32的描述是这样的：找不到附属汇编 Microsoft.VC90.CRT，上一个错误是 参照的汇编没有安装在系统上。 事件ID为59的描述是这样的：Resolve Partial Assembly 为 Microsoft.VC90.CRT 失败。 参考错误消息: 参照的汇编没有安装在系统上。 另一个事件ID为59的描述是：Generate Activation Context 为 E:\***\php.exe 失败。 参考错误消息: 参照的汇编没有安装在系统上。 哈哈，看来问题原因找到了，就是因为缺少VC9的运行库，老实的去微软找：http://download.microsoft.com/download/9/7/7/977B481A-7BA6-4E30-AC40-ED51EB2028F2/vcredist_x86.exe，下载回来vcredist_x86.exe（Microsoft Visual C++ 2008 Redistributable 9.0.30729.4148）安装，再次执行php.exe成功了^_^ 这就是整个解决问题的过程。估计以后也会有其他人遇到此类问题的，分享一下经验吧:)]]></description>
		<wfw:commentRss>http://www.deepseath.com/?feed=rss2&#038;p=858</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
