<?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>haojii &#187; PHP</title>
	<atom:link href="http://www.haojii.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.haojii.com</link>
	<description>一个专注于技术的IT男</description>
	<lastBuildDate>Thu, 19 Apr 2012 07:58:49 +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>学车日志(2)</title>
		<link>http://www.haojii.com/2010/03/learning-drive-2/</link>
		<comments>http://www.haojii.com/2010/03/learning-drive-2/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 15:57:26 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[曾经的一天]]></category>
		<category><![CDATA[学车]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=246</guid>
		<description><![CDATA[学车最痛苦的莫过于早起，严重打乱了正常的生活规律，对于喜欢熬夜的程序员来说是个挑战，为啥我花了钱还要受罪呢，为啥就不能舒舒服服的学个车呢 面对当前竞争激烈的驾驶培训市场，如果能推出不痛苦的学车服务，肯定能获得一大批客户吧，而且很多情况是可以避免折腾的 就比如今天的理论考试，为了考试报名签到不得不6点就起床了，到龙泉驾校的时候7点30，签名排在40几个，真正的考试其实9点才开始，等到轮到我们考试的时候已经10点半了，浪费这么多时间，为什么就不能人性化一点，这些事情后面根本就不存在技术难度，完全是想不想把事情做好的态度问题 我肯定教练把我们的信息提交之后，电脑自动排个考试日期和时间不是什么难事！绝对比那考试机房的摄像头采集监控系统来得简单N倍！ 实在不明白还要那么原始的签字画押的形式表示你是第几个到的，然后他们再去人工召唤你去考试，再说这个签到顺序也没啥意义，认识人的还不是不要排对吗？ 顺便mark一下，交规理论考试98分通过了，值得开心，因为最近实在忙，书都没看完一遍，做了几套模拟题，就过了 说到办公自动化的问题，LP的公司是国企，据说很多人对office系的东西都不太会有，公司要统计每个人的工作时间，每次都是打印A4纸张，发下去手填的。 我马上想到咱用的SAP，但是让他们公司用上SAP这么一套复杂的东东不太现实，开始我想自己写个报时间的程序，经过一番原型设计，觉得还是有点折腾的，要有用户和权限及角色系统，项目，工作类型，工时统计，虽然可以RoR，还得考虑可用性，想想自己一周都不一定能写出来，干脆google了一把开源的，找到一个timetracker不错，放到xampp里折腾了一个小时运行起来了 php版本为5.3遇到点的小问题记录： Deprecated: Function ereg() is deprecated 办法： ereg(’^[0-9]‘ 修改成 preg_match(’/^[0-9]/‘ Deprecated: Function split() is deprecated 办法：改成 explode 下一步就是修改一下timetracker的一些php文件，去掉些广告，改成想要的样子<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F06%2Flearning-drive-6%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Flearning-drive-2%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">学车日志(6)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F04%2Flearning-drive-4%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Flearning-drive-2%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">学车日志(4)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F04%2Flearning-drive-3%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Flearning-drive-2%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">学车日志(3)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F05%2Flearning-drive-5%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Flearning-drive-2%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">学车日志(5)</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>学车最痛苦的莫过于早起，严重打乱了正常的生活规律，对于喜欢熬夜的程序员来说是个挑战，为啥我花了钱还要受罪呢，为啥就不能舒舒服服的学个车呢</p>
<p>面对当前竞争激烈的驾驶培训市场，如果能推出不痛苦的学车服务，肯定能获得一大批客户吧，而且很多情况是可以避免折腾的</p>
<p>就比如今天的理论考试，为了考试报名签到不得不6点就起床了，到龙泉驾校的时候7点30，签名排在40几个，真正的考试其实9点才开始，等到轮到我们考试的时候已经10点半了，浪费这么多时间，为什么就不能人性化一点，这些事情后面根本就不存在技术难度，完全是想不想把事情做好的态度问题</p>
<p>我肯定教练把我们的信息提交之后，电脑自动排个考试日期和时间不是什么难事！绝对比那考试机房的摄像头采集监控系统来得简单N倍！</p>
<p>实在不明白还要那么原始的签字画押的形式表示你是第几个到的，然后他们再去人工召唤你去考试，再说这个签到顺序也没啥意义，认识人的还不是不要排对吗？</p>
<p>顺便mark一下，交规理论考试98分通过了，值得开心，因为最近实在忙，书都没看完一遍，做了几套模拟题，就过了</p>
<p>说到办公自动化的问题，LP的公司是国企，据说很多人对office系的东西都不太会有，公司要统计每个人的工作时间，每次都是打印A4纸张，发下去手填的。</p>
<p>我马上想到咱用的SAP，但是让他们公司用上SAP这么一套复杂的东东不太现实，开始我想自己写个报时间的程序，经过一番原型设计，觉得还是有点折腾的，要有用户和权限及角色系统，项目，工作类型，工时统计，虽然可以RoR，还得考虑可用性，想想自己一周都不一定能写出来，干脆google了一把开源的，找到一个timetracker不错，放到xampp里折腾了一个小时运行起来了</p>
<p>php版本为5.3遇到点的小问题记录：</p>
<p>Deprecated: Function ereg() is deprecated<br />
办法： ereg(’^[0-9]‘ 修改成 preg_match(’<strong><span style="color: #ff0000;">/</span></strong>^[0-9]<span style="color: #ff0000;"><strong>/</strong></span>‘</p>
<p>Deprecated: Function split() is deprecated<br />
办法：改成 explode</p>
<p>下一步就是修改一下timetracker的一些php文件，去掉些广告，改成想要的样子</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F06%2Flearning-drive-6%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Flearning-drive-2%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">学车日志(6)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F04%2Flearning-drive-4%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Flearning-drive-2%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">学车日志(4)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F04%2Flearning-drive-3%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Flearning-drive-2%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">学车日志(3)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F05%2Flearning-drive-5%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Flearning-drive-2%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">学车日志(5)</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2010/03/learning-drive-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>快速配置php开发环境</title>
		<link>http://www.haojii.com/2010/02/configure-php-develop-environment/</link>
		<comments>http://www.haojii.com/2010/02/configure-php-develop-environment/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 15:25:23 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=226</guid>
		<description><![CDATA[PDT &#8211; Eclipse for PHP Developers XAMPP &#8211; Apache + PHP + MySql + &#8230; all in one 关键点： 傻瓜式安装完成XAMPP,解压完成PDT之后 1. 打开XAMPP控制板-&#62;启动 Apache,MySql 2. 配置PDT,选择Window-&#62;Preferences-&#62;PHP-&#62;PHP Executables-&#62;Search (选择XAMPP安装目录里的php目录) 3. 新建php工程的时候选择”Create Project from existing source”,然后填入XAMPP的htdocs目录+”工程名称”,这样做是为了 Run as-&#62; PHP Web Page的时候就能马上预览效果了 当然phpeclipse和XAMPP也能集成得不错，可以参看这篇写得很详细的适合新手上路的文章: Eclipse3.4 &#8230; <a href="http://www.haojii.com/2010/02/configure-php-develop-environment/">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fcool-css-button-1%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fconfigure-php-develop-environment%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">炫酷CSS超链接按钮一</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fcss_background_image_positioning%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fconfigure-php-develop-environment%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">CSS分割背景图片的技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fedianping-user-experience-analyse%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fconfigure-php-develop-environment%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">E店评的用户体验分析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fplacehold-it%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fconfigure-php-develop-environment%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">placehold.it</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>PDT &#8211; Eclipse for PHP Developers<br />
XAMPP &#8211; Apache + PHP + MySql + &#8230; all in one</p>
<p>关键点：<br />
傻瓜式安装完成XAMPP,解压完成PDT之后<br />
1. 打开XAMPP控制板-&gt;启动 Apache,MySql<br />
2. 配置PDT,选择Window-&gt;Preferences-&gt;PHP-&gt;PHP Executables-&gt;Search (选择XAMPP安装目录里的php目录)<br />
3. 新建php工程的时候选择”Create Project from existing source”,然后填入XAMPP的htdocs目录+”工程名称”,这样做是为了 Run as-&gt; PHP Web Page的时候就能马上预览效果了</p>
<p>当然phpeclipse和XAMPP也能集成得不错，可以参看这篇写得很详细的适合新手上路的文章: <a href="http://jakbb.javaeye.com/blog/585063">Eclipse3.4 下搭建PHP 开发环境 xampp </a></p>
<p>补充:</p>
<p>要调试的话，需要安装zend debug插件<a href="http://downloads.zend.com/pdt">http://downloads.zend.com/pdt</a>，安装完成之后，配置PDT的PHP Executables为安装插件目录下的PHP。（已经在列表里面了，选择设置一个默认的即可）</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fcool-css-button-1%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fconfigure-php-develop-environment%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">炫酷CSS超链接按钮一</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fcss_background_image_positioning%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fconfigure-php-develop-environment%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">CSS分割背景图片的技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fedianping-user-experience-analyse%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fconfigure-php-develop-environment%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">E店评的用户体验分析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fplacehold-it%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fconfigure-php-develop-environment%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">placehold.it</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2010/02/configure-php-develop-environment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

