<?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>Haihan&#039;Blog</title>
	<atom:link href="http://www.phpwebgo.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpwebgo.com</link>
	<description>Linux、Apache/Nginx、MySQL、PHP爱好者</description>
	<lastBuildDate>Tue, 07 Feb 2012 07:55:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>如何调整VMware中Linux(centos)虚拟机屏幕分辨率</title>
		<link>http://www.phpwebgo.com/2012/02/07/194.html</link>
		<comments>http://www.phpwebgo.com/2012/02/07/194.html#comments</comments>
		<pubDate>Tue, 07 Feb 2012 07:51:59 +0000</pubDate>
		<dc:creator>coldsea</dc:creator>
				<category><![CDATA[Lamp]]></category>

		<guid isPermaLink="false">http://www.phpwebgo.com/?p=194</guid>
		<description><![CDATA[VMware中安装Linux虚拟机后，屏幕分辨率通常默认设置为800&#215;600，并且不能通过“屏幕分辨率首选项”窗口（系统->首选项->屏幕分辨率）进行设置。一般情况下，用户可以通过安装VMware Tools来解决这个问题，不过方法也并非只此一种： 　　1) 打开“显示设置”窗口（系统->管理->显示），打开“硬件”选项卡，点击“显示器类型”中的“配置”按钮； 　　2) 在弹出的“显示器”窗口中选择合适的显示型号，例如：General LCD Display -> LCD Panel 1280&#215;1024； 　　3) 一路点击“确定”后回到“显示设置”窗口，打开“设置”选项卡，然后在“分辨率”标签处选择合适的分辨率； 　　4) 点击“确定”按钮后，系统将提示重新启动X服务器，方法是：打开终端执行命令“gdm-restart”； 　　X服务器重启后，用户就可以通过“屏幕分辨率首选项”窗口调整Linux虚拟机屏幕分辨率了。实验环境为：windows 7 + VMware Workstation 7.0.1 + CentOS 5.4，其他系统应该大同小异。]]></description>
			<content:encoded><![CDATA[<p>VMware中安装Linux虚拟机后，屏幕分辨率通常默认设置为800&#215;600，并且不能通过“屏幕分辨率首选项”窗口（系统->首选项->屏幕分辨率）进行设置。一般情况下，用户可以通过安装VMware Tools来解决这个问题，不过方法也并非只此一种：</p>
<p>　　1) 打开“显示设置”窗口（系统->管理->显示），打开“硬件”选项卡，点击“显示器类型”中的“配置”按钮；</p>
<p>　　2) 在弹出的“显示器”窗口中选择合适的显示型号，例如：General LCD Display -> LCD Panel 1280&#215;1024；</p>
<p>　　3) 一路点击“确定”后回到“显示设置”窗口，打开“设置”选项卡，然后在“分辨率”标签处选择合适的分辨率；</p>
<p>　　4) 点击“确定”按钮后，系统将提示重新启动X服务器，方法是：打开终端执行命令“gdm-restart”；</p>
<p>　　X服务器重启后，用户就可以通过“屏幕分辨率首选项”窗口调整Linux虚拟机屏幕分辨率了。实验环境为：windows 7 + VMware Workstation 7.0.1 + CentOS 5.4，其他系统应该大同小异。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpwebgo.com/2012/02/07/194.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>电影在线观看教程</title>
		<link>http://www.phpwebgo.com/2012/01/14/79.html</link>
		<comments>http://www.phpwebgo.com/2012/01/14/79.html#comments</comments>
		<pubDate>Sat, 14 Jan 2012 05:29:05 +0000</pubDate>
		<dc:creator>coldsea</dc:creator>
				<category><![CDATA[电影]]></category>

		<guid isPermaLink="false">http://www.phpwebgo.com/?p=79</guid>
		<description><![CDATA[①去快播官方(http://www.kuaibo.com/)下载并安装快播播放器 ②打开软件，输入想要看的电影名字，会打开一个新网页，选择对应的种子即可在线观看 祝你看片愉快。 &#160;]]></description>
			<content:encoded><![CDATA[<p>①去快播官方(http://www.kuaibo.com/)下载并安装快播播放器</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/20120114132401.jpg"><img class="alignnone  wp-image-80" title="20120114132401" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/20120114132401-1024x451.jpg" alt="" width="655" height="289" /></a></p>
<p>②打开软件，输入想要看的电影名字，会打开一个新网页，选择对应的种子即可在线观看</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/20120114132706.jpg"><img class="alignnone size-full wp-image-81" title="20120114132706" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/20120114132706.jpg" alt="" width="651" height="413" /></a></p>
<p>祝你看片愉快。</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpwebgo.com/2012/01/14/79.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>金陵十三钗</title>
		<link>http://www.phpwebgo.com/2012/01/14/75.html</link>
		<comments>http://www.phpwebgo.com/2012/01/14/75.html#comments</comments>
		<pubDate>Sat, 14 Jan 2012 05:20:06 +0000</pubDate>
		<dc:creator>coldsea</dc:creator>
				<category><![CDATA[电影]]></category>
		<category><![CDATA[金陵十三钗]]></category>

		<guid isPermaLink="false">http://www.phpwebgo.com/?p=75</guid>
		<description><![CDATA[1937年的南京，日军残暴，满目疮痍，但由国际友人主持的一个教堂暂时还是一方净土。几个神职人员收留了一群躲在教堂里的金陵女大学生、13个躲避战火的秦淮河上的风尘女子，以及6个从死人堆里爬出来的国军伤兵。共同面对有史以来最惨绝人寰的大屠杀的故事，结果竟然是那13个最“下贱”的女子成了保护众人的英雄。在这个相对封闭的空间里，他们共同面对有史以来最可怕、最没有人性的屠杀，产生了各种各样奇妙的感情。然而，教堂也不是永远的净土，日军终于冲进了这里。伤兵被杀，女大学生则眼看就要被日军掳走凌辱。在这个时刻，这13个平日里被视为下贱的女子，在侵略者丧失人性的屠刀前，激发了侠义血性：她们身披唱诗袍，怀揣剪刀，代替教堂里的女学生参加日本人的圣诞庆祝会，去赴一场悲壮的死亡之约。 在线观看教程：http://www.phpwebgo.com/2012/01/14/79.html &#160;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/16384176869414.jpg"><img class="aligncenter" title="16384176869414" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/16384176869414.jpg" alt="" width="500" height="700" /></a></p>
<p>1937年的南京，日军残暴，满目疮痍，但由国际友人主持的一个教堂暂时还是一方净土。几个神职人员收留了一群躲在教堂里的金陵女大学生、13个躲避战火的秦淮河上的风尘女子，以及6个从死人堆里爬出来的国军伤兵。共同面对有史以来最惨绝人寰的大屠杀的故事，结果竟然是那13个最“下贱”的女子成了保护众人的英雄。在这个相对封闭的空间里，他们共同面对有史以来最可怕、最没有人性的屠杀，产生了各种各样奇妙的感情。然而，教堂也不是永远的净土，日军终于冲进了这里。伤兵被杀，女大学生则眼看就要被日军掳走凌辱。在这个时刻，这13个平日里被视为下贱的女子，在侵略者丧失人性的屠刀前，激发了侠义血性：她们身披唱诗袍，怀揣剪刀，代替教堂里的女学生参加日本人的圣诞庆祝会，去赴一场悲壮的死亡之约。</p>
<p>在线观看教程：<a href="http://www.phpwebgo.com/2012/01/14/79.html">http://www.phpwebgo.com/2012/01/14/79.html</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpwebgo.com/2012/01/14/75.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>supesite如何使添加在的文章中的FLASH、WMV、Real媒体无需点击即可显示？</title>
		<link>http://www.phpwebgo.com/2011/01/24/191.html</link>
		<comments>http://www.phpwebgo.com/2011/01/24/191.html#comments</comments>
		<pubDate>Mon, 24 Jan 2011 11:18:30 +0000</pubDate>
		<dc:creator>coldsea</dc:creator>
				<category><![CDATA[WEB前端]]></category>

		<guid isPermaLink="false">http://www.phpwebgo.com/?p=191</guid>
		<description><![CDATA[修改 /include/js/common.js 中的的 addMediaAction(div) 函数为下面的样子即可。 //显示隐藏媒体 function addMediaAction(div) { var thediv = getbyid(div); if(thediv) { var medias = thediv.getElementsByTagName(&#039;kbd&#039;); if(medias) { for (i=0;i&#60;medias.length;i++) { if(medias[i].className==&#039;showvideo&#039; &#124;&#124; medias[i].className==&#039;showflash&#039;&#124;&#124; medias[i].className==&#039;showreal&#039;) { //medias[i].onclick = function() {showmedia(this,400,400)}; {showmedia(medias[i],400,400)}; } } } } }]]></description>
			<content:encoded><![CDATA[<p>修改 /include/js/common.js 中的的 addMediaAction(div) 函数为下面的样子即可。</p>
<div>
<pre class="brush: javascript; gutter: true">//显示隐藏媒体
function addMediaAction(div) {
	var thediv = getbyid(div);
	if(thediv) {
		var medias = thediv.getElementsByTagName(&#039;kbd&#039;);
		if(medias) {
			for (i=0;i&lt;medias.length;i++) {
				if(medias[i].className==&#039;showvideo&#039; || medias[i].className==&#039;showflash&#039;|| medias[i].className==&#039;showreal&#039;) {
					//medias[i].onclick = function() {showmedia(this,400,400)};
					{showmedia(medias[i],400,400)};
				}
			}
		}
	}
}</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.phpwebgo.com/2011/01/24/191.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>分享一个PHP+MySQL数据采集程序之采集ICP网站备案系统</title>
		<link>http://www.phpwebgo.com/2011/01/11/188.html</link>
		<comments>http://www.phpwebgo.com/2011/01/11/188.html#comments</comments>
		<pubDate>Tue, 11 Jan 2011 12:27:48 +0000</pubDate>
		<dc:creator>coldsea</dc:creator>
				<category><![CDATA[PHP编程]]></category>

		<guid isPermaLink="false">http://www.phpwebgo.com/?p=188</guid>
		<description><![CDATA[&#60;?php /** * FILE_NAME:index.php * PHP+MySQL采集ICP网站备案系统 * * @copyright Copyright (c) 2011-2015 www.phpwebgo.com * @author phpwebgo@gmail.com * @package core * @version 2011-1-11 下午03:25:55 */ header(&#34;Content-type:text/html;charset=utf-8&#34;); include_once(&#34;conn.php&#34;); $id=(int)$_GET[&#039;id&#039;]?(int)$_GET[&#039;id&#039;]:&#34;1&#34;; if($id&#60;=5269289 &#38;&#38; $id){ set_time_limit(0); $con=@file_get_contents(&#34;http://www.miibeian.gov.cn/icp/publish/query/icpMemoInfo_login.action?id=&#34;.$id.&#34;&#34;); $con=iconv(&#34;GBK&#34;,&#34;utf-8&#34;,$con);//echo $con; $tmp = &#34;/&#60;tr.*&#62;(.*)&#60;/tr&#62;/iUs&#34;; preg_match_all ( $tmp, $con, $macthes ); //print_r($macthes);die; $tmp = &#34;/&#60;td.*&#62;(.*)&#60;/td&#62;/iUs&#34;; $arr = Array (); foreach ( $macthes [1] [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/caiji.jpg"><img class="size-full wp-image-189 aligncenter" title="caiji" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/caiji.jpg" alt="" width="334" height="393" /></a></p>
<pre class="brush: php; gutter: true">&lt;?php
/**
  * FILE_NAME:index.php
  * PHP+MySQL采集ICP网站备案系统
  *
  * @copyright Copyright (c) 2011-2015  www.phpwebgo.com
  * @author  phpwebgo@gmail.com
  * @package core
  * @version 2011-1-11  下午03:25:55
  */

  header(&quot;Content-type:text/html;charset=utf-8&quot;);
  include_once(&quot;conn.php&quot;);
  $id=(int)$_GET[&#039;id&#039;]?(int)$_GET[&#039;id&#039;]:&quot;1&quot;;
  if($id&lt;=5269289 &amp;&amp; $id){
  set_time_limit(0);
  $con=@file_get_contents(&quot;http://www.miibeian.gov.cn/icp/publish/query/icpMemoInfo_login.action?id=&quot;.$id.&quot;&quot;);
  $con=iconv(&quot;GBK&quot;,&quot;utf-8&quot;,$con);//echo $con;

  $tmp = &quot;/&lt;tr.*&gt;(.*)&lt;/tr&gt;/iUs&quot;;
  preg_match_all ( $tmp, $con, $macthes ); //print_r($macthes);die;

  $tmp = &quot;/&lt;td.*&gt;(.*)&lt;/td&gt;/iUs&quot;;
  $arr = Array ();
  foreach ( $macthes [1] as $tr ) {
	preg_match_all ( $tmp, $tr, $td );
	$arr [] = $td [1];
  }
  //print_r($arr);die;

  $a  = trim(strip_tags(str_replace ( &quot; &quot;, &quot;&quot;, $arr[1][2])));
  $a2 = trim(strip_tags(str_replace ( &quot; &quot;, &quot;&quot;, $arr[1][4])));
  $a3 = trim(strip_tags(str_replace ( &quot; &quot;, &quot;&quot;, $arr[2][1])));
  $a4 = trim(strip_tags(str_replace ( &quot; &quot;, &quot;&quot;, $arr[2][3])));
  $a5 = trim(strip_tags(str_replace ( &quot; &quot;, &quot;&quot;, $arr[6][2])));
  $a6 = trim(strip_tags(str_replace ( &quot; &quot;, &quot;&quot;, $arr[6][4])));
  $a7 = trim(strip_tags(str_replace ( &quot; &quot;, &quot;&quot;, $arr[7][1])));
  $a8 = trim(strip_tags(str_replace ( &quot; &quot;, &quot;&quot;, $arr[7][3])));
  $a9 = trim(strip_tags(str_replace ( &quot; &quot;, &quot;&quot;, $arr[8][1])));
  $a10= trim(strip_tags(str_replace ( &quot; &quot;, &quot;&quot;, $arr[8][3])));

  echo $a.&quot;&lt;hr&gt;&quot;;
  echo $a2.&quot;&lt;hr&gt;&quot;;
  echo $a3.&quot;&lt;hr&gt;&quot;;
  echo $a4.&quot;&lt;hr&gt;&quot;;
  echo $a5.&quot;&lt;hr&gt;&quot;;
  echo $a6.&quot;&lt;hr&gt;&quot;;
  echo $a7.&quot;&lt;hr&gt;&quot;;
  echo $a8.&quot;&lt;hr&gt;&quot;;
  echo $a9.&quot;&lt;hr&gt;&quot;;
  echo $a10.&quot;&lt;hr&gt;&quot;;

  if($a){
     $intosql=&quot;INSERT INTO beian (`ipcxkzh` ,`passtime` ,`zbdwmc` ,`zbdwxz` ,`sitename` ,`siteurl` ,`siteower` ,`siteym` ,`siteba` ,`qzspx`) VALUES (&#039;$a&#039;,&#039;$a2&#039;,&#039;$a3&#039;,&#039;$a4&#039;,&#039;$a5&#039;,&#039;$a6&#039;,&#039;$a7&#039;,&#039;$a8&#039;,&#039;$a9&#039;,&#039;$a10&#039;)&quot;;//echo $intosql;die;
     mysql_query($intosql);
  }

  sleep(2);//可以注释掉

  $id++;
  echo &quot;正在采集......&quot;.$id;
  echo &quot;&lt;script&gt;location.href=&#039;index.php?id=&quot;.$id.&quot;&#039;&lt;/script&gt;&quot;;

  }else{
   echo &quot;采集结束&quot;;
  }

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.phpwebgo.com/2011/01/11/188.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uchome2.0之支付宝、易宝支付、网银支付等在线支付插件（uchome二次开发）</title>
		<link>http://www.phpwebgo.com/2010/12/01/177.html</link>
		<comments>http://www.phpwebgo.com/2010/12/01/177.html#comments</comments>
		<pubDate>Wed, 01 Dec 2010 14:21:05 +0000</pubDate>
		<dc:creator>coldsea</dc:creator>
				<category><![CDATA[PHP编程]]></category>

		<guid isPermaLink="false">http://www.phpwebgo.com/?p=177</guid>
		<description><![CDATA[1.支持多种支付方式： 2.可以分别为自己和好友充值 3.给好友充值 4.充值 5.提交至支付宝 6.使用易宝支付接口进行网上银行支付（易宝支付支持的银行以及游戏接口比较多） 7.充值 8.提交至银行支付网关]]></description>
			<content:encoded><![CDATA[<p>1.支持多种支付方式：</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif1.jpg"><img class="alignnone size-full wp-image-178" title="zhif1" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif1.jpg" alt="" width="806" height="333" /></a></p>
<p>2.可以分别为自己和好友充值</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif2.jpg"><img class="alignnone size-full wp-image-179" title="zhif2" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif2.jpg" alt="" width="823" height="409" /></a></p>
<p>3.给好友充值</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif3.jpg"><img class="alignnone size-full wp-image-180" title="zhif3" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif3.jpg" alt="" width="979" height="560" /></a></p>
<p>4.充值</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif4.jpg"><img class="alignnone size-full wp-image-181" title="zhif4" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif4.jpg" alt="" width="756" height="433" /></a></p>
<p>5.提交至支付宝</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif5.jpg"><img class="alignnone size-full wp-image-182" title="zhif5" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif5.jpg" alt="" width="764" height="388" /></a></p>
<p>6.使用易宝支付接口进行网上银行支付（易宝支付支持的银行以及游戏接口比较多）</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif8.jpg"><img class="alignnone size-full wp-image-183" title="zhif8" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif8.jpg" alt="" width="760" height="513" /></a></p>
<p>7.充值</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif9.jpg"><img class="alignnone size-full wp-image-184" title="zhif9" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif9.jpg" alt="" width="765" height="443" /></a></p>
<p>8.提交至银行支付网关</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif10.jpg"><img class="alignnone size-full wp-image-185" title="zhif10" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/zhif10.jpg" alt="" width="759" height="523" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpwebgo.com/2010/12/01/177.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何解决uchome自带编辑器无法获取uchome编辑器里面的值问题？(uchome二次开发)</title>
		<link>http://www.phpwebgo.com/2010/11/29/175.html</link>
		<comments>http://www.phpwebgo.com/2010/11/29/175.html#comments</comments>
		<pubDate>Mon, 29 Nov 2010 14:46:22 +0000</pubDate>
		<dc:creator>coldsea</dc:creator>
				<category><![CDATA[PHP编程]]></category>

		<guid isPermaLink="false">http://www.phpwebgo.com/?p=175</guid>
		<description><![CDATA[由于uchome二次开发过程中，页面全部是新设计的，所以需要引入uchome自身头部所需的js： &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;source/script_cookie.js&#34;&#62;&#60;/script&#62; &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;source/script_common.js&#34;&#62;&#60;/script&#62; &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;source/script_menu.js&#34;&#62;&#60;/script&#62; &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;source/script_ajax.js&#34;&#62;&#60;/script&#62; &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;source/script_face.js&#34;&#62;&#60;/script&#62; &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;source/script_manage.js&#34;&#62;&#60;/script&#62; &#60;script language=&#34;javascript&#34; src=&#34;image/editor/editor_function.js&#34;&#62;&#60;/script&#62;&#60;!--uchome编辑器要用的js--&#62; &#160; 表单： &#60;form method=&#34;post&#34; action=&#34;space.php?do=classesbbs&#38;ac=post&#34; enctype=&#34;multipart/form-data&#34;&#62; &#60;input type=&#34;hidden&#34; name=&#34;formhash&#34; value=&#34;&#60;!--{eval echo formhash();}--&#62;&#34; /&#62; 标题：&#60;input type=&#34;text&#34; name=&#34;title&#34; id=&#34;title&#34; size=&#34;30&#34;/&#62; &#60;br/&#62; 班级：&#60;select id=&#34;classid&#34; name=&#34;classid&#34;&#62; &#60;!--{loop $classes $value}--&#62; &#60;!--{if $value[&#039;classid&#039;] [...]]]></description>
			<content:encoded><![CDATA[<p>由于uchome二次开发过程中，页面全部是新设计的，所以需要引入uchome自身头部所需的js：</p>
<div>
<pre class="brush: javascript; gutter: true">&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;source/script_cookie.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;source/script_common.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;source/script_menu.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;source/script_ajax.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;source/script_face.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;source/script_manage.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; src=&quot;image/editor/editor_function.js&quot;&gt;&lt;/script&gt;&lt;!--uchome编辑器要用的js--&gt;</pre>
</div>
<p>&nbsp;</p>
<p>表单：</p>
<div>
<pre class="brush: html; gutter: true"> &lt;form method=&quot;post&quot;  action=&quot;space.php?do=classesbbs&amp;ac=post&quot;   enctype=&quot;multipart/form-data&quot;&gt;

                      &lt;input type=&quot;hidden&quot; name=&quot;formhash&quot; value=&quot;&lt;!--{eval echo formhash();}--&gt;&quot; /&gt;
                    标题：&lt;input type=&quot;text&quot; name=&quot;title&quot; id=&quot;title&quot; size=&quot;30&quot;/&gt;
                    &lt;br/&gt;
                      班级：&lt;select id=&quot;classid&quot; name=&quot;classid&quot;&gt;
                       &lt;!--{loop $classes $value}--&gt;
						&lt;!--{if $value[&#039;classid&#039;] == $thevalue[&#039;classid&#039;]}--&gt;
						&lt;option value=&quot;$value[classid]&quot; selected&gt;$value[classname]&lt;/option&gt;
						&lt;!--{else}--&gt;
						&lt;option value=&quot;$value[classid]&quot;&gt;$value[classname]&lt;/option&gt;
						&lt;!--{/if}--&gt;
						&lt;!--{/loop}--&gt;
				&lt;/select&gt;
                    &lt;br/&gt;
                   内容：&lt;textarea name=&quot;content&quot; id=&quot;uchome-ttHtmlEditor&quot; style=&quot;height:100%;width:100%;display:none;border:0px&quot;&gt;$thevalue[g_description]&lt;/textarea&gt;
				&lt;iframe src=&quot;editor.php?charset=$_SC[charset]&amp;allowhtml=$allowhtml&quot; name=&quot;uchome-ifrHtmlEditor&quot; id=&quot;uchome-ifrHtmlEditor&quot; scrolling=&quot;no&quot; border=&quot;0&quot; frameborder=&quot;0&quot; style=&quot;width:100%;border: 1px solid #C5C5C5;&quot; height=&quot;200&quot;&gt;&lt;/iframe&gt;
				  &lt;br/&gt;
                   &lt;input type=&quot;submit&quot; name=&quot;sub&quot; onclick=&quot;edit_save();&quot;  value=&quot;提交&quot; /&gt;</pre>
</div>
<p><strong>提交的时候要记得加入：onclick=”edit_save();”，否则无法获取uchome编辑器的值。</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpwebgo.com/2010/11/29/175.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL语句，如何获得MySql数据库表中某字段无重复记录最小值</title>
		<link>http://www.phpwebgo.com/2010/11/09/172.html</link>
		<comments>http://www.phpwebgo.com/2010/11/09/172.html#comments</comments>
		<pubDate>Tue, 09 Nov 2010 15:13:24 +0000</pubDate>
		<dc:creator>coldsea</dc:creator>
				<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://www.phpwebgo.com/?p=172</guid>
		<description><![CDATA[由于最近要做竞拍功能，竞拍规则：一个人可以多次竞拍出价，但是出最低价格而且不能重复价格的人竞拍成功 转换成SQL：获得表中某字段无重复记录最小值 当前表的SQL：获得auction_records表中auction_price字段无重复记录的最小值 这是通过： select auction_price from auction_records 查询出来的所有结果： 由于价格为1.00有重复，所以这里要取出的无重复记录的最低价是13.00； 以下SQL语句为解决办法： select min(auction_price) from (select auction_price from auction_records group by auction_price having count(*)=1) t]]></description>
			<content:encoded><![CDATA[<p>由于最近要做竞拍功能，竞拍规则：一个人可以多次竞拍出价，但是出最低价格而且不能重复价格的人竞拍成功</p>
<p>转换成SQL：获得表中某字段无重复记录最小值</p>
<p>当前表的SQL：获得auction_records表中auction_price字段无重复记录的最小值</p>
<p>这是通过：</p>
<div>
<pre>select auction_price from auction_records</pre>
</div>
<p>查询出来的所有结果：</p>
<p><a href="http://www.phpwebgo.com/wp-content/uploads/2012/01/zuidijiage.jpg"><img class="alignnone size-full wp-image-173" title="zuidijiage" src="http://www.phpwebgo.com/wp-content/uploads/2012/01/zuidijiage.jpg" alt="" width="155" height="131" /></a></p>
<p>由于价格为1.00有重复，所以这里要取出的无重复记录的最低价是13.00；</p>
<p>以下SQL语句为解决办法：</p>
<div>
<pre>select min(auction_price)  from (select auction_price from auction_records group by auction_price having count(*)=1) t</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.phpwebgo.com/2010/11/09/172.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FCKeditor如何整合SyntaxHighlighter代码高亮插件</title>
		<link>http://www.phpwebgo.com/2010/11/05/170.html</link>
		<comments>http://www.phpwebgo.com/2010/11/05/170.html#comments</comments>
		<pubDate>Fri, 05 Nov 2010 14:07:29 +0000</pubDate>
		<dc:creator>coldsea</dc:creator>
				<category><![CDATA[PHP编程]]></category>

		<guid isPermaLink="false">http://www.phpwebgo.com/?p=170</guid>
		<description><![CDATA[1.下载dp.SyntaxHighlighter插件 解压后出现两个文件夹: 一个是JS目录，把JS目录拷贝到网站的跟目录下即可。 一个是SyntaxHighlighter目录，把SyntaxHighlighter拷贝到fckeditor/editor/plugins下面。 2.配置FCKeditor/fckconfig.js文件 FCKConfig.PluginsPath = FCKConfig.BasePath + &#039;plugins/&#039; ; FCKConfig.Plugins.Add( &#039;SyntaxHighlighter&#039;, &#039;zh-cn,en&#039; ) ; // FCKConfig.Plugins.Add( &#039;autogrow&#039; ) ; // FCKConfig.Plugins.Add( &#039;dragresizetable&#039; ); &#160; 3.完成，打开FCKeditor编辑器插入一段代码看看效果 $p = file ( S_ROOT . &#039;./install/install.sql&#039; ); foreach ( $p as $key =&#62; $val ) { //遍历，删除注释 $flag = substr ( $val, 0, 2 ); //去前两位字符 if [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1.下载dp.SyntaxHighlighter插件</strong></p>
<p><strong>解压后出现两个文件夹:</strong></p>
<p>一个是JS目录，把JS目录拷贝到网站的跟目录下即可。</p>
<p>一个是SyntaxHighlighter目录，把SyntaxHighlighter拷贝到fckeditor/editor/plugins下面。</p>
<p><strong>2.配置FCKeditor/fckconfig.js文件</strong></p>
<div>
<pre>FCKConfig.PluginsPath = FCKConfig.BasePath + &#039;plugins/&#039; ;
FCKConfig.Plugins.Add( &#039;SyntaxHighlighter&#039;, &#039;zh-cn,en&#039; ) ;

// FCKConfig.Plugins.Add( &#039;autogrow&#039; ) ;
// FCKConfig.Plugins.Add( &#039;dragresizetable&#039; );</pre>
</div>
<p>&nbsp;</p>
<p><strong>3.完成，打开FCKeditor编辑器插入一段代码看看效果</strong></p>
<div>
<pre>$p = file ( S_ROOT . &#039;./install/install.sql&#039; );

foreach ( $p as $key =&gt; $val ) { //遍历，删除注释
        $flag = substr ( $val, 0, 2 ); //去前两位字符
        if ($flag == &quot;--&quot;) { //判断是否为注释
            $p [$key] = &quot;&quot;; //删除
        }
    }
    $p = implode ( &quot;&quot;, $p ); //转换为字符串
    $p = trim ( $p );
    $p = explode ( &quot;$$n&quot;, $p ); //转换为数组
    foreach ( $p as $key =&gt; $val ) { //遍历执行
        $_SGLOBAL [&#039;db&#039;]-&gt;query ( $val );
    }</pre>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpwebgo.com/2010/11/05/170.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何用php导入MySql存储过程</title>
		<link>http://www.phpwebgo.com/2010/11/04/168.html</link>
		<comments>http://www.phpwebgo.com/2010/11/04/168.html#comments</comments>
		<pubDate>Thu, 04 Nov 2010 11:03:26 +0000</pubDate>
		<dc:creator>coldsea</dc:creator>
				<category><![CDATA[PHP编程]]></category>

		<guid isPermaLink="false">http://www.phpwebgo.com/?p=168</guid>
		<description><![CDATA[用php制作安装程序时，用phpMyAdmin导出SQL文件后，用php导入存储过程，phpMyAdmin导出存储过程格式如下： DELIMITER $$ -- -- 存储过程 -- DROP PROCEDURE IF EXISTS `getallcategory`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `getallcategory`() BEGIN declare v_sql varchar(1000); set v_sql=&#34;SELECT id,catename FROM shop_category &#34;; set @v_sql=v_sql; prepare stmt from @v_sql; EXECUTE stmt ; deallocate prepare stmt; END$$ DELIMITER ; &#160; 但是通过mysql_query()无法导入到MySql中，一直提示错误： MySQL Error Message: MySQL Query Error SQL: DELIMITER Error: You have an [...]]]></description>
			<content:encoded><![CDATA[<p>用php制作安装程序时，用phpMyAdmin导出SQL文件后，用php导入存储过程，phpMyAdmin导出存储过程格式如下：</p>
<div>
<pre>DELIMITER $$
--
-- 存储过程
--
DROP PROCEDURE IF EXISTS `getallcategory`$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `getallcategory`()
BEGIN
declare v_sql varchar(1000);
set v_sql=&quot;SELECT id,catename FROM shop_category &quot;;
set @v_sql=v_sql;
prepare stmt from @v_sql;
EXECUTE stmt ;
deallocate prepare stmt;
END$$

DELIMITER ;</pre>
</div>
<p>&nbsp;</p>
<p>但是通过mysql_query()无法导入到MySql中，一直提示错误：</p>
<p><strong>MySQL Error</strong><br />
<strong>Message</strong>: MySQL Query Error<br />
<strong>SQL</strong>: DELIMITER<br />
<strong>Error</strong>: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;DELIMITER&#8217; at line 1<br />
<strong>Errno.</strong>: 1064</p>
<p>但是通过phpMyAdmin可以成功导入存储过程，google了半天没有找到答案，突然想起来phpMyAdmin可以直接导入，何不看看phpMyAdmin的源代码，于是一路追踪phpMyAdmin执行SQL存储过程的方法，终于找到解决办法了，具体操作步骤如下：</p>
<p>1.去掉install.sql中存储过程的开头 “DELIMITER $$” 和结尾 “DELIMITER;”</p>
<p>2.把install.sql里面的存储过程以“$$n”分割成单独的SQL语句，可以用mysql_query()直接执行；</p>
<p>例如：</p>
<div>
<pre>$p = file ( S_ROOT . &#039;./install/install.sql&#039; );

foreach ( $p as $key =&gt; $val ) { //遍历，删除注释
        $flag = substr ( $val, 0, 2 ); //去前两位字符
        if ($flag == &quot;--&quot;) { //判断是否为注释
            $p [$key] = &quot;&quot;; //删除
        }
    }
    $p = implode ( &quot;&quot;, $p ); //转换为字符串
    $p = trim ( $p );
    $p = explode ( &quot;$$n&quot;, $p ); //转换为数组
    foreach ( $p as $key =&gt; $val ) { //遍历执行
        $_SGLOBAL [&#039;db&#039;]-&gt;query ( $val );
    }</pre>
</div>
<p>&nbsp;</p>
<p>3.以“$$n”分割后可以形成这样的数组：</p>
<div>
<pre>Array
(
    [0] =&gt; DROP PROCEDURE IF EXISTS `getallcategory`
    [1] =&gt; CREATE DEFINER=`root`@`localhost` PROCEDURE `getallcategory`()
BEGIN
declare v_sql varchar(1000);
set v_sql=&quot;SELECT id,catename FROM shop_category &quot;;
set @v_sql=v_sql;
prepare stmt from @v_sql;
EXECUTE stmt ;
deallocate prepare stmt;
END
)</pre>
</div>
<pre></pre>
<p>相当于直接执行SQL语句：</p>
<div>
<pre>DROP PROCEDURE IF EXISTS `getallcategory`</pre>
</div>
<p>&nbsp;</p>
<p>总结：其实和安装程序中的导入表的原理一样(表可以通过$content = explode ( “;n”, $content );)，把安装程序中的install.sql里面的语句拆分成一条一条可以执行的SQL语句即可</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpwebgo.com/2010/11/04/168.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

