<?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>Jian Zhou &#187; PHP</title>
	<atom:link href="http://tiaozhanshu.net/category/computer/software/programming/php-programming-software-computer/feed" rel="self" type="application/rss+xml" />
	<link>http://tiaozhanshu.net</link>
	<description>为了祖国母亲的荣辱。</description>
	<lastBuildDate>Thu, 09 Sep 2010 13:43:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP和C语言共享内存通信以及信号量互斥</title>
		<link>http://tiaozhanshu.net/php%e5%92%8cc%e8%af%ad%e8%a8%80%e5%85%b1%e4%ba%ab%e5%86%85%e5%ad%98%e9%80%9a%e4%bf%a1%e4%bb%a5%e5%8f%8a%e4%bf%a1%e5%8f%b7%e9%87%8f%e4%ba%92%e6%96%a5.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=php%25e5%2592%258cc%25e8%25af%25ad%25e8%25a8%2580%25e5%2585%25b1%25e4%25ba%25ab%25e5%2586%2585%25e5%25ad%2598%25e9%2580%259a%25e4%25bf%25a1%25e4%25bb%25a5%25e5%258f%258a%25e4%25bf%25a1%25e5%258f%25b7%25e9%2587%258f%25e4%25ba%2592%25e6%2596%25a5</link>
		<comments>http://tiaozhanshu.net/php%e5%92%8cc%e8%af%ad%e8%a8%80%e5%85%b1%e4%ba%ab%e5%86%85%e5%ad%98%e9%80%9a%e4%bf%a1%e4%bb%a5%e5%8f%8a%e4%bf%a1%e5%8f%b7%e9%87%8f%e4%ba%92%e6%96%a5.html#comments</comments>
		<pubDate>Mon, 24 May 2010 13:53:47 +0000</pubDate>
		<dc:creator>Jian Zhou</dc:creator>
				<category><![CDATA[C语言]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[信号量]]></category>
		<category><![CDATA[共享内存]]></category>

		<guid isPermaLink="false">http://tiaozhanshu.net/?p=39384</guid>
		<description><![CDATA[程序分PHP部分和C语言部分。PHP部分提供一个run_php_cmd函数入口参数为命令直接返回C语言处理结果。C语言部分提供一个run_php_cmd入口参数为一个函数，当收到PHP命令时调用该函数。 动作流程为：PHP往共享内存里写数据-&#62;释放cmd信号量-&#62;C语言从共享内存里读数据-&#62;C语言向共享内存里写返回结果-&#62;C语言释放ret信号量-&#62;PHP等到ret信号量得到返回结果 C语言信号量操作 pv.h: int sem_creat(key_t key);//生成信号量 void del_sem(int semid);//删除信号量 inline int v(int semid);//v v操作 inline int p(int semid);//p p操作 pv.c: #include &#60;sys/sem.h&#62; #include &#60;stdio.h&#62; #include "pv.h" union semun { int val; struct semid_ds *buf; unsigned short *array; }; //生成信号量 int sem_creat(key_t key) { union semun sem; int semid; sem.val = 0; semid = semget(key,1,IPC_CREAT&#124;0666); [...]


Related posts:<ol><li><a href='http://tiaozhanshu.net/linux%e4%b8%8bsocket%e9%80%9a%e4%bf%a1%e3%80%81%e5%85%b1%e4%ba%ab%e5%86%85%e5%ad%98%e5%92%8c%e4%bf%a1%e5%8f%b7%e9%87%8f%e6%b7%b7%e5%90%88%e4%bd%bf%e7%94%a8%e7%9a%84%e4%be%8b%e5%ad%90.html' rel='bookmark' title='Permanent Link: Linux下Socket通信、共享内存和信号量混合使用的例子'>Linux下Socket通信、共享内存和信号量混合使用的例子</a></li>
<li><a href='http://tiaozhanshu.net/linear-list.html' rel='bookmark' title='Permanent Link: 线性表'>线性表</a></li>
<li><a href='http://tiaozhanshu.net/c%e8%af%ad%e8%a8%80%e5%a4%84%e7%90%86html.html' rel='bookmark' title='Permanent Link: C语言处理HTML'>C语言处理HTML</a></li>
</ol>]]></description>
		<wfw:commentRss>http://tiaozhanshu.net/php%e5%92%8cc%e8%af%ad%e8%a8%80%e5%85%b1%e4%ba%ab%e5%86%85%e5%ad%98%e9%80%9a%e4%bf%a1%e4%bb%a5%e5%8f%8a%e4%bf%a1%e5%8f%b7%e9%87%8f%e4%ba%92%e6%96%a5.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tiaozhanshu&#8217;s Table Of Contents</title>
		<link>http://tiaozhanshu.net/table-of-contents.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=table-of-contents</link>
		<comments>http://tiaozhanshu.net/table-of-contents.html#comments</comments>
		<pubDate>Thu, 25 Jun 2009 07:13:14 +0000</pubDate>
		<dc:creator>Jian Zhou</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[模板]]></category>

		<guid isPermaLink="false">http://www.tiaozhanshu.net/?p=34036</guid>
		<description><![CDATA[因为不方便使用，改了一下插件Yskin&#8217;s Table of Contents Generator。主要是增加了后台面板，提供了一些可供选择的地方。再不一定要按Yskin的方式：在文章右上角输出一个javascript形式的&#8221;Table Of Contents&#8221;。表格标题也变得可以修改。 插件下载地址如下：toc。 另外为了一些不方便上传插件的朋友，还为模板提供了支持的方式。先下载：toc-for-theme，解压后的php文件放在模板文件夹里，再在functions.php中加上一句：“if( file_exists(TEMPLATEPATH . &#8216;/toc-for-theme.php&#8217;) ) include_once(TEMPLATEPATH . &#8216;/toc-for-theme.php&#8217;);”。这样可以做到最小程度的修改模板文件。 合理的组织文章内容是很有必要的，特别是对于比较长的文章。我觉得TOC还有可以改进的地方要： 1、还可以有更多风格可以选择。例如，可以加进JavaScript。 2、可以有更多标记用，TOC标记做默认标记，用TOC-X可以选择其它风格。 有任何想合作开发的请留言。 几种不同样式的截图： Related posts:dynamic_sidebar 为wordpress做一个导航菜单


Related posts:<ol><li><a href='http://tiaozhanshu.net/dynamic_sidebar.html' rel='bookmark' title='Permanent Link: dynamic_sidebar'>dynamic_sidebar</a></li>
<li><a href='http://tiaozhanshu.net/theme-use-page-as-menu-to-wordpress.html' rel='bookmark' title='Permanent Link: 为wordpress做一个导航菜单'>为wordpress做一个导航菜单</a></li>
</ol>]]></description>
		<wfw:commentRss>http://tiaozhanshu.net/table-of-contents.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>mysql_db_query</title>
		<link>http://tiaozhanshu.net/mysql_db_query.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mysql_db_query</link>
		<comments>http://tiaozhanshu.net/mysql_db_query.html#comments</comments>
		<pubDate>Tue, 23 Jun 2009 01:45:05 +0000</pubDate>
		<dc:creator>Jian Zhou</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.tiaozhanshu.net/?p=33964</guid>
		<description><![CDATA[(PHP 4, PHP 5)发出一个MySQL查询 声明 resource mysql_db_query ( string $database , string $query [, resource $link_identifier ] ) mysql_db_query()选择一个数据库，并在这个数据库上执行一个查询。 参数 database 将要选择的数据库 query MySQL查询语句 link_identifier MySQL连接。如果link_identifier没有被指定，最后一个打开的连接将被使用。如果没有找到连接，它将会尝试调用无参数的mysql_connect()建立一个新的连接。如果碰巧没有打到连接也没有建立新的连接，将会产生E_WARNING级别的错误。 返回值 返回一个有效的MySQL结果资源到result变量，或者如果出错则返回FALSE。这个函数同样对INSERT/UPDATE/DELETE查询返回TRUE/FALSE，来表明是否成功或者失败。 变更日志 Version Description 5.3.0 这个函数现在发出E_DEPRECATED注意(notice)。 4.0.6 这个函数被轻视。使用mysql_select_db()和mysql_query()作为替代。 例子 Example #1 mysql_db_query() alternative example &#60;?php if (!$link = mysql_connect(&#8216;mysql_host&#8217;, &#8216;mysql_user&#8217;, &#8216;mysql_password&#8217;)) { echo &#8216;Could not connect to mysql&#8217;; [...]


Related posts:<ol><li><a href='http://tiaozhanshu.net/mysql_num_rows.html' rel='bookmark' title='Permanent Link: mysql_num_rows'>mysql_num_rows</a></li>
<li><a href='http://tiaozhanshu.net/mysql_create_db.html' rel='bookmark' title='Permanent Link: mysql_create_db'>mysql_create_db</a></li>
<li><a href='http://tiaozhanshu.net/mysql-functions-in-php.html' rel='bookmark' title='Permanent Link: PHP中的MySQL函数'>PHP中的MySQL函数</a></li>
</ol>]]></description>
		<wfw:commentRss>http://tiaozhanshu.net/mysql_db_query.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql_db_name</title>
		<link>http://tiaozhanshu.net/mysql_db_name.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mysql_db_name</link>
		<comments>http://tiaozhanshu.net/mysql_db_name.html#comments</comments>
		<pubDate>Tue, 23 Jun 2009 01:25:14 +0000</pubDate>
		<dc:creator>Jian Zhou</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.tiaozhanshu.net/?p=33963</guid>
		<description><![CDATA[(PHP 4, PHP 5)获取数据库名称 声明 string mysql_db_name ( resource $result , int $row [, mixed $field ] ) 在mysql_list_dbs()的返回结果中检索数据库名。 参数 result 函数mysql_list_dbs()的返回结果。 row 结果的索引行。从第0行开始。 field 指定字段名，可选参数。 返回值 如果成功，则返回数据库名称；如果失败，则返回False。 例子 Example #1 mysql_db_name() example &#60;?php error_reporting(E_ALL); $link = mysql_connect(&#8216;dbhost&#8217;, &#8216;username&#8217;, &#8216;password&#8217;); $db_list = mysql_list_dbs($link); $i = 0; $cnt = mysql_num_rows($db_list); while ($i &#60; $cnt) { echo [...]


Related posts:<ol><li><a href='http://tiaozhanshu.net/mysql-functions-in-php.html' rel='bookmark' title='Permanent Link: PHP中的MySQL函数'>PHP中的MySQL函数</a></li>
<li><a href='http://tiaozhanshu.net/mysql_connect.html' rel='bookmark' title='Permanent Link: mysql_connect'>mysql_connect</a></li>
<li><a href='http://tiaozhanshu.net/mysql_db_query.html' rel='bookmark' title='Permanent Link: mysql_db_query'>mysql_db_query</a></li>
</ol>]]></description>
		<wfw:commentRss>http://tiaozhanshu.net/mysql_db_name.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql_data_seek</title>
		<link>http://tiaozhanshu.net/mysql_data_seek.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mysql_data_seek</link>
		<comments>http://tiaozhanshu.net/mysql_data_seek.html#comments</comments>
		<pubDate>Sun, 21 Jun 2009 10:15:39 +0000</pubDate>
		<dc:creator>Jian Zhou</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.tiaozhanshu.net/?p=33911</guid>
		<description><![CDATA[(PHP 4, PHP 5)移动内部结果指针 声明 bool mysql_data_seek ( resource $result , int $row_number ) mysql_data_seek()移动result变量所指的MySQL查询结果的内部指针到指定行。紧跟其后的MySQL取结果函数调用，例如mysql_fetch_assoc()，将会返回这一行。 行数从0开始。变量row_number应该是从0到mysql_num_rows() &#8211; 1之间的某一值。然而如果result为空(mysql_num_rows() == 0)，到第0行的查找将会失败并产生E_WARNING级的警告，mysql_data_seek()将会返回FALSE。 row_number starts at 0. The row_number should be a value in the range from 0 to mysql_num_rows() &#8211; 1. However if the result set is empty (mysql_num_rows() == 0), a seek to 0 will fail [...]


Related posts:<ol><li><a href='http://tiaozhanshu.net/mysql_num_rows.html' rel='bookmark' title='Permanent Link: mysql_num_rows'>mysql_num_rows</a></li>
<li><a href='http://tiaozhanshu.net/mysql_db_query.html' rel='bookmark' title='Permanent Link: mysql_db_query'>mysql_db_query</a></li>
<li><a href='http://tiaozhanshu.net/mysql-functions-in-php.html' rel='bookmark' title='Permanent Link: PHP中的MySQL函数'>PHP中的MySQL函数</a></li>
</ol>]]></description>
		<wfw:commentRss>http://tiaozhanshu.net/mysql_data_seek.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
