<?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>HeQee</title>
	<atom:link href="http://www.heqee.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.heqee.com</link>
	<description>xfeng&#039;s Blog - Records WEB development experience</description>
	<lastBuildDate>Thu, 23 Feb 2012 12:19:08 +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>Android平台上的权限列表</title>
		<link>http://www.heqee.com/android-permission/</link>
		<comments>http://www.heqee.com/android-permission/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 05:14:50 +0000</pubDate>
		<dc:creator>xfeng</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://www.heqee.com/?p=232</guid>
		<description><![CDATA[Android平台上的权限列表 android.permission.ACCESS_CHECKIN_PROPERTIES 允许读写访问”properties”表在checkin数据库中，改值可以修改上传( Allows read/write access to the “properties” table in the checkin database, to change values that get uploaded) &#8230; <a href="http://www.heqee.com/android-permission/" class="more-link">了解更多</a><p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fbat-javac-android-project%2F&from=http%3A%2F%2Fwww.heqee.com%2Fandroid-permission%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Bat批处理用Javac编译Android工程</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.heqee.com%2Fzend-guard-50-key%2F&from=http%3A%2F%2Fwww.heqee.com%2Fandroid-permission%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Zend Guard 5.0 key 注册码[已过期]</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.heqee.com%2Fblog-pr4%2F&from=http%3A%2F%2Fwww.heqee.com%2Fandroid-permission%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">开博二个月,升到PR4</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.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F&from=http%3A%2F%2Fwww.heqee.com%2Fandroid-permission%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">完美解决failed to open stream: HTTP request failed!</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>
<style>
.permission{font-size:10px;}
.permission td{padding:5px}
</style>
<table width="100%"  border="0" class="permission" cellpadding="1" cellspacing="1"  bgcolor="#6d84b4" style="">
<tr>
<td colspan="2" align="center" bgcolor="#6d84b4" ><font color="#ffffff">Android平台上的权限列表</font></td>
</tr>
<tr>
<td width="339" bgcolor="#FFFFFF">android.permission.ACCESS_CHECKIN_PROPERTIES</td>
<td width="320" bgcolor="#FFFFFF">允许读写访问”properties”表在checkin数据库中，改值可以修改上传<br />( Allows read/write access to the “properties” table in the checkin database, to change values that get uploaded) </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.ACCESS_COARSE_LOCATION   </td>
<td bgcolor="#FFFFFF">允许一个程序访问CellID或WiFi热点来获取粗略的位置<br />(Allows an application to access coarse (e.g., Cell-ID, WiFi) location)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.ACCESS_FINE_LOCATION   </td>
<td bgcolor="#FFFFFF">允许一个程序访问精良位置(如GPS) <br />(Allows an application to access fine (e.g., GPS) location)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.ACCESS_LOCATION_EXTRA_COMMANDS   </td>
<td bgcolor="#FFFFFF">允许应用程序访问额外的位置提供命令<br />(Allows an application to access extra location provider commands)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.ACCESS_MOCK_LOCATION   </td>
<td bgcolor="#FFFFFF">允许程序创建模拟位置提供用于测试<br />(Allows an application to create mock location providers for testing)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.ACCESS_NETWORK_STATE   </td>
<td bgcolor="#FFFFFF">允许程序访问有关GSM网络信息<br />(Allows applications to access information about networks)   </td>
</tr>
</table>
<p><span id="more-232"></span></p>
<table width="100%"  border="0" cellpadding="1" cellspacing="1"  bgcolor="#6d84b4" class="permission">
<tr>
<td bgcolor="#FFFFFF">android.permission.ACCESS_SURFACE_FLINGER   </td>
<td bgcolor="#FFFFFF">允许程序使用SurfaceFlinger底层特性<br />(Allows an application to use SurfaceFlinger’s low level features)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.ACCESS_WIFI_STATE   </td>
<td bgcolor="#FFFFFF">允许程序访问Wi-Fi网络状态信息<br />(Allows applications to access information about Wi-Fi networks)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.ADD_SYSTEM_SERVICE   </td>
<td bgcolor="#FFFFFF">允许程序发布系统级服务<br />(Allows an application to publish system-level services).   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.BATTERY_STATS   </td>
<td bgcolor="#FFFFFF">允许程序更新手机电池统计信息<br />(Allows an application to update the collected battery statistics) </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.BLUETOOTH   </td>
<td bgcolor="#FFFFFF">允许程序连接到已配对的蓝牙设备<br />(Allows applications to connect to paired bluetooth devices)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.BLUETOOTH_ADMIN   </td>
<td bgcolor="#FFFFFF">允许程序发现和配对蓝牙设备<br />(Allows applications to discover and pair bluetooth devices)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.BRICK   </td>
<td bgcolor="#FFFFFF">请求能够禁用设备(非常危险)(Required to be able to disable the device (very *erous!).)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.BROADCAST_PACKAGE_REMOVED   </td>
<td bgcolor="#FFFFFF">允许程序广播一个提示消息在一个应用程序包已经移除后<br />(Allows an application to broadcast a notification that an application package has been removed)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.BROADCAST_STICKY   </td>
<td bgcolor="#FFFFFF">允许一个程序广播常用intents<br />(Allows an application to broadcast sticky intents)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.CALL_PHONE   </td>
<td bgcolor="#FFFFFF">允许一个程序初始化一个电话拨号不需通过拨号用户界面需要用户确认<br />(Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call being placed.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.CALL_PRIVILEGED   </td>
<td bgcolor="#FFFFFF">允许一个程序拨打任何号码，包含紧急号码无需通过拨号用户界面需要用户确认<br />(Allows an application to call any phone number, including emergency numbers, without going through the Dialer user interface for the user to confirm the call being placed)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.CAMERA   </td>
<td bgcolor="#FFFFFF">请求访问使用照相设备<br />(Required to be able to access the camera device. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.CHANGE_COMPONENT_ENABLED_STATE   </td>
<td bgcolor="#FFFFFF">允许一个程序是否改变一个组件或其他的启用或禁用<br />(Allows an application to change whether an application component (other than its own) is enabled or not. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.CHANGE_CONFIGURATION   </td>
<td bgcolor="#FFFFFF">允许一个程序修改当前设置，如本地化<br />(Allows an application to modify the current configuration, such as locale. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.CHANGE_NETWORK_STATE   </td>
<td bgcolor="#FFFFFF">允许程序改变网络连接状态<br />(Allows applications to change network connectivity state)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.CHANGE_WIFI_STATE   </td>
<td bgcolor="#FFFFFF">允许程序改变Wi-Fi连接状态<br />(Allows applications to change Wi-Fi connectivity state)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.CLEAR_APP_CACHE   </td>
<td bgcolor="#FFFFFF">允许一个程序清楚缓存从所有安装的程序在设备中<br />(Allows an application to clear the caches of all installed applications on the device. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.CLEAR_APP_USER_DATA   </td>
<td bgcolor="#FFFFFF">允许一个程序清除用户设置<br />(Allows an application to clear user data)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.CONTROL_LOCATION_UPDATES   </td>
<td bgcolor="#FFFFFF">允许启用禁止位置更新提示从无线模块<br />(Allows enabling/disabling location update notifications from the radio. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.DELETE_CACHE_FILES   </td>
<td bgcolor="#FFFFFF">允许程序删除缓存文件<br />(Allows an application to delete cache files)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.DELETE_PACKAGES   </td>
<td bgcolor="#FFFFFF">允许一个程序删除包<br />(Allows an application to delete packages)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.DEVICE_POWER   </td>
<td bgcolor="#FFFFFF">允许访问底层电源管理<br />(Allows low-level access to power management)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.DIAGNOSTIC   </td>
<td bgcolor="#FFFFFF">允许程序RW诊断资源<br />(Allows applications to RW to diagnostic resources. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.DISABLE_KEYGUARD   </td>
<td bgcolor="#FFFFFF">允许程序禁用键盘锁<br />(Allows applications to disable the keyguard )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.DUMP   </td>
<td bgcolor="#FFFFFF">允许程序返回状态抓取信息从系统服务<br />(Allows an application to retrieve state dump information from system services.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.EXPAND_STATUS_BAR   </td>
<td bgcolor="#FFFFFF">允许一个程序扩展收缩在状态栏,android开发网提示应该是一个类似Windows Mobile中的托盘程序<br />(Allows an application to expand or collapse the status bar. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.FACTORY_TEST   </td>
<td bgcolor="#FFFFFF">作为一个工厂测试程序，运行在root用户(Run as a manufacturer test application, running as the root user. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.FLASHLIGHT   </td>
<td bgcolor="#FFFFFF">访问闪光灯,android开发网提示HTC Dream不包含闪光灯<br />(Allows access to the flashlight )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.FORCE_BACK   </td>
<td bgcolor="#FFFFFF">允许程序强行一个后退操作是否在顶层activities<br />(Allows an application to force a BACK operation on whatever is the top activity. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.FOTA_UPDATE   </td>
<td bgcolor="#FFFFFF">暂时不了解这是做什么使用的，android开发网分析可能是一个预留权限.   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.GET_ACCOUNTS   </td>
<td bgcolor="#FFFFFF">访问一个帐户列表在Accounts Service中<br />(Allows access to the list of accounts in the Accounts Service)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.GET_PACKAGE_SIZE   </td>
<td bgcolor="#FFFFFF">允许一个程序获取任何package占用空间容量<br />(Allows an application to find out the space used by any package. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.GET_TASKS   </td>
<td bgcolor="#FFFFFF">允许一个程序获取信息有关当前或最近运行的任务，一个缩略的任务状态，是否活动等等<br />(Allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what activities are running in it, etc.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.HARDWARE_TEST   </td>
<td bgcolor="#FFFFFF">允许访问硬件<br />(Allows access to hardware peripherals. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.INJECT_EVENTS   </td>
<td bgcolor="#FFFFFF">允许一个程序截获用户事件如按键、触摸、轨迹球等等到一个时间流，android 开发网提醒算是hook技术吧<br />(Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.INSTALL_PACKAGES   </td>
<td bgcolor="#FFFFFF">允许一个程序安装packages<br />(Allows an application to install packages. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.INTERNAL_SYSTEM_WINDOW   </td>
<td bgcolor="#FFFFFF">允许打开窗口使用系统用户界面<br />(Allows an application to open windows that are for use by parts of the system user interface. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.INTERNET   </td>
<td bgcolor="#FFFFFF">允许程序打开网络套接字<br />(Allows applications to open network sockets)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.MANAGE_APP_TOKENS   </td>
<td bgcolor="#FFFFFF">允许程序管理(创建、催后、 z- order默认向z轴推移)程序引用在窗口管理器中<br />(Allows an application to manage (create, destroy, Z-order) application tokens in the window manager. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.MASTER_CLEAR</td>
<td bgcolor="#FFFFFF">目前还没有明确的解释，android开发网分析可能是清除一切数据，类似硬格机   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.MODIFY_AUDIO_SETTINGS   </td>
<td bgcolor="#FFFFFF">允许程序修改全局音频设置<br />(Allows an application to modify global audio settings)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.MODIFY_PHONE_STATE   </td>
<td bgcolor="#FFFFFF">允许修改话机状态，如电源，人机接口等<br />(Allows modification of the telephony state – power on, mmi, etc. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.MOUNT_UNMOUNT_FILESYSTEMS   </td>
<td bgcolor="#FFFFFF">允许挂载和反挂载文件系统可移动存储<br />(Allows mounting and unmounting file systems for removable storage. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.PERSISTENT_ACTIVITY   </td>
<td bgcolor="#FFFFFF">允许一个程序设置他的activities显示<br />(Allow an application to make its activities persistent. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.PROCESS_OUTGOING_CALLS   </td>
<td bgcolor="#FFFFFF">允许程序监视、修改有关播出电话<br />(Allows an application to monitor, modify, or abort outgoing calls)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.READ_CALENDAR   </td>
<td bgcolor="#FFFFFF">允许程序读取用户日历数据<br />(Allows an application to read the user’s calendar data.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.READ_CONTACTS   </td>
<td bgcolor="#FFFFFF">允许程序读取用户联系人数据<br />(Allows an application to read the user’s contacts data.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.READ_FRAME_BUFFER   </td>
<td bgcolor="#FFFFFF">允许程序屏幕波或和更多常规的访问帧缓冲数据<br />(Allows an application to take screen shots and more generally get access to the frame buffer data)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.READ_INPUT_STATE   </td>
<td bgcolor="#FFFFFF">允许程序返回当前按键状态<br />(Allows an application to retrieve the current state of keys and switches. )  </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.READ_LOGS   </td>
<td bgcolor="#FFFFFF">允许程序读取底层系统日志文件<br />(Allows an application to read the low-level system log files. )  </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.READ_OWNER_DATA   </td>
<td bgcolor="#FFFFFF">允许程序读取所有者数据<br />(Allows an application to read the owner’s data)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.READ_SMS   </td>
<td bgcolor="#FFFFFF">允许程序读取短信息<br />(Allows an application to read SMS messages.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.READ_SYNC_SETTINGS   </td>
<td bgcolor="#FFFFFF">允许程序读取同步设置<br />(Allows applications to read the sync settings)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.READ_SYNC_STATS   </td>
<td bgcolor="#FFFFFF">允许程序读取同步状态<br />(Allows applications to read the sync stats)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.REBOOT   </td>
<td bgcolor="#FFFFFF">请求能够重新启动设备<br />(Required to be able to reboot the device. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.RECEIVE_BOOT_COMPLETED   </td>
<td bgcolor="#FFFFFF">允许一个程序接收到 ACTION_BOOT_COMPLETED广播在系统完成启动<br />(Allows an application to receive the ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.RECEIVE_MMS   </td>
<td bgcolor="#FFFFFF">允许一个程序监控将收到MMS彩信,记录或处理<br />(Allows an application to monitor incoming MMS messages, to record or perform processing on them. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.RECEIVE_SMS   </td>
<td bgcolor="#FFFFFF">允许程序监控一个将收到短信息，记录或处理<br />(Allows an application to monitor incoming SMS messages, to record or perform processing on them.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.RECEIVE_WAP_PUSH   </td>
<td bgcolor="#FFFFFF">允许程序监控将收到WAP PUSH信息<br />(Allows an application to monitor incoming WAP push messages. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.RECORD_AUDIO   </td>
<td bgcolor="#FFFFFF">允许程序录制音频<br />(Allows an application to record audio)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.REORDER_TASKS   </td>
<td bgcolor="#FFFFFF">允许程序改变Z轴排列任务<br />(Allows an application to change the Z-order of tasks)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.RESTART_PACKAGES   </td>
<td bgcolor="#FFFFFF">允许程序重新启动其他程序<br />(Allows an application to restart other applications)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SEND_SMS   </td>
<td bgcolor="#FFFFFF">允许程序发送SMS短信<br />(Allows an application to send SMS messages)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_ACTIVITY_WATCHER   </td>
<td bgcolor="#FFFFFF">允许程序监控或控制activities已经启动全局系统中<br />(Allows an application to watch and control how activities are started globally in the system.  ) </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_ALWAYS_FINISH   </td>
<td bgcolor="#FFFFFF">允许程序控制是否活动间接完成在处于后台时<br />(Allows an application to control whether activities are immediately finished when put in the background.   )</td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_ANIMATION_SCALE   </td>
<td bgcolor="#FFFFFF">修改全局信息比例<br />(Modify the global animation scaling factor.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_DEBUG_APP   </td>
<td bgcolor="#FFFFFF">配置一个程序用于调试<br />(Configure an application for debugging.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_ORIENTATION   </td>
<td bgcolor="#FFFFFF">允许底层访问设置屏幕方向和实际旋转<br />(Allows low-level access to setting the orientation (actually rotation) of the screen.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_PREFERRED_APPLICATIONS   </td>
<td bgcolor="#FFFFFF">允许一个程序修改列表参数PackageManager.addPackageToPreferred() 和PackageManager.removePackageFromPreferred()方法<br />(Allows an application to modify the list of preferred applications with the PackageManager.addPackageToPreferred() and PackageManager.removePackageFromPreferred() methods.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_PROCESS_FOREGROUND   </td>
<td bgcolor="#FFFFFF">允许程序当前运行程序强行到前台<br />(Allows an application to force any currently running process to be in the foreground.)  </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_PROCESS_LIMIT   </td>
<td bgcolor="#FFFFFF">允许设置最大的运行进程数量<br />(Allows an application to set the maximum number of (not needed) application processes that can be running. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_TIME_ZONE   </td>
<td bgcolor="#FFFFFF">允许程序设置时间区域<br />(Allows applications to set the system time zone)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_WALLPAPER   </td>
<td bgcolor="#FFFFFF">允许程序设置壁纸<br />(Allows applications to set the wallpaper )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SET_WALLPAPER_HINTS   </td>
<td bgcolor="#FFFFFF">允许程序设置壁纸hits<br />(Allows applications to set the wallpaper hints)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SIGNAL_PERSISTENT_PROCESSES   </td>
<td bgcolor="#FFFFFF">允许程序请求发送信号到所有显示的进程中<br />(Allow an application to request that a signal be sent to all persistent processes)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.STATUS_BAR   </td>
<td bgcolor="#FFFFFF">允许程序打开、关闭或禁用状态栏及图标<br />(Allows an application to open, close, or disable the status bar and its icons.  ) </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SUBSCRIBED_FEEDS_READ   </td>
<td bgcolor="#FFFFFF">允许一个程序访问订阅RSS Feed内容提供<br />(Allows an application to allow access the subscribed feeds ContentProvider. )</td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SUBSCRIBED_FEEDS_WRITE   </td>
<td bgcolor="#FFFFFF">系统暂时保留改设置,android开发网认为未来版本会加入该功能。   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.SYSTEM_ALERT_WINDOW   </td>
<td bgcolor="#FFFFFF">允许一个程序打开窗口使用 TYPE_SYSTEM_ALERT，显示在其他所有程序的顶层<br />(Allows an application to open windows using the type TYPE_SYSTEM_ALERT, shown on top of all other applications. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.VIBRATE   </td>
<td bgcolor="#FFFFFF">允许访问振动设备<br />(Allows access to the vibrator)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.WAKE_LOCK   </td>
<td bgcolor="#FFFFFF">允许使用PowerManager的 WakeLocks保持进程在休眠时从屏幕消失<br />( Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.WRITE_APN_SETTINGS   </td>
<td bgcolor="#FFFFFF">允许程序写入API设置<br />(Allows applications to write the apn settings)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.WRITE_CALENDAR   </td>
<td bgcolor="#FFFFFF">允许一个程序写入但不读取用户日历数据<br />(Allows an application to write (but not read) the user’s calendar data. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.WRITE_CONTACTS   </td>
<td bgcolor="#FFFFFF">允许程序写入但不读取用户联系人数据<br />(Allows an application to write (but not read) the user’s contacts data. )  </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.WRITE_GSERVICES   </td>
<td bgcolor="#FFFFFF">允许程序修改Google服务地图<br />(Allows an application to modify the Google service map. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.WRITE_OWNER_DATA   </td>
<td bgcolor="#FFFFFF">允许一个程序写入但不读取所有者数据<br />(Allows an application to write (but not read) the owner’s data.)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.WRITE_SETTINGS   </td>
<td bgcolor="#FFFFFF">允许程序读取或写入系统设置<br />(Allows an application to read or write the system settings. )   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.WRITE_SMS   </td>
<td bgcolor="#FFFFFF">允许程序写短信<br />(Allows an application to write SMS messages)   </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">android.permission.WRITE_SYNC_SETTINGS   </td>
<td bgcolor="#FFFFFF">允许程序写入同步设置<br />(Allows applications to write the sync settings)   </td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#6d84b4"><font color="#ffffff">android平台上的权限许可分得很细，如果软件无法正常执行时看看是不是缺少相关的permission声明，然后再签名生成的apk文件。</font></td>
</tr>
</table>
<p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fbat-javac-android-project%2F&from=http%3A%2F%2Fwww.heqee.com%2Fandroid-permission%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Bat批处理用Javac编译Android工程</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.heqee.com%2Fzend-guard-50-key%2F&from=http%3A%2F%2Fwww.heqee.com%2Fandroid-permission%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Zend Guard 5.0 key 注册码[已过期]</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.heqee.com%2Fblog-pr4%2F&from=http%3A%2F%2Fwww.heqee.com%2Fandroid-permission%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">开博二个月,升到PR4</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.heqee.com%2Fphp-english-pseudo-original%2F&from=http%3A%2F%2Fwww.heqee.com%2Fandroid-permission%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现英文站在线伪原创</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.heqee.com%2Fhtaccess%2F&from=http%3A%2F%2Fwww.heqee.com%2Fandroid-permission%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">利用.htaccess将多个域名绑定到同一空间</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.heqee.com/android-permission/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP实现Google ping服务快速收录</title>
		<link>http://www.heqee.com/php-google-ping/</link>
		<comments>http://www.heqee.com/php-google-ping/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 16:57:06 +0000</pubDate>
		<dc:creator>xfeng</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.heqee.com/?p=230</guid>
		<description><![CDATA[玩过WORDPRESS的朋友应该都知道ping服务吧，通俗点讲它可以在更新文章的时候向Google、baidu及其他支持ping的搜索引擎发送指令然后招呼它们过来，不用傻等他们过来收录了，化被动为主动了。直接贴代码了，很简单的。 &#160; &#60;?php  /**  +------------------------------------------------------------------------------  * 通知搜索引擎过来抓去最新发布的内容。秒收不是梦  * 目前仅支持Google和Baidu  +------------------------------------------------------------------------------  */ class ping {  public $method,$callback;  public function method ($site_name,$site_url,$update_url,$update_rss){   $this-&#62;method &#8230; <a href="http://www.heqee.com/php-google-ping/" class="more-link">了解更多</a><p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fgoogle-voice-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-google-ping%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Voice 短信发送接口PHP开源版</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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-google-ping%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-google-ping%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fphp-english-pseudo-original%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-google-ping%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现英文站在线伪原创</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.heqee.com%2Fip-iplocation-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-google-ping%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IP归属地查询接口PHP版</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>玩过WORDPRESS的朋友应该都知道ping服务吧，通俗点讲它可以在更新文章的时候向Google、baidu及其他支持ping的搜索引擎发送指令然后招呼它们过来，不用傻等他们过来收录了，化被动为主动了。直接贴代码了，很简单的。</p>
<p>&nbsp;</p>
<pre class="php">&lt;?php
 /**
 +------------------------------------------------------------------------------
 * 通知搜索引擎过来抓去最新发布的内容。秒收不是梦
 * 目前仅支持Google和Baidu
 +------------------------------------------------------------------------------
 */
class ping {

 public $method,$callback;

 public function method ($site_name,$site_url,$update_url,$update_rss){
  $this-&gt;method = "
  &lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;
  &lt;methodCall&gt;
    &lt;methodName&gt;weblogUpdates.extendedPing&lt;/methodName&gt;
    &lt;params&gt;
   &lt;param&gt;&lt;value&gt;{$site_name}&lt;/value&gt;&lt;/param&gt;
   &lt;param&gt;&lt;value&gt;{$site_url}&lt;/value&gt;&lt;/param&gt;
   &lt;param&gt;&lt;value&gt;{$update_url}&lt;/value&gt;&lt;/param&gt;
   &lt;param&gt;&lt;value&gt;{$update_rss}&lt;/value&gt;&lt;/param&gt;
    &lt;/params&gt;
  &lt;/methodCall&gt;";
  return $this-&gt;method;
 }

 public function _post($url, $postvar) {
  $ch = curl_init();
  $headers = array(
    "POST ".$url." HTTP/1.0",
    "Content-type: text/xml;charset=\"utf-8\"",
    "Accept: text/xml",
    "Content-length: ".strlen($postvar)
   );
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $postvar);
  $res = curl_exec ($ch);
  curl_close ($ch);
  return $res;
 }

 public function google(){
  $this-&gt;callback = $this-&gt;_post('http://blogsearch.google.com/ping/RPC2', $this-&gt;method);
  return strpos($this-&gt;callback, "&lt;boolean&gt;0&lt;/boolean&gt;") ? true : false;

 }

 public function baidu(){
  $this-&gt;callback = $this-&gt;_post('http://ping.baidu.com/ping/RPC2', $this-&gt;method);
  return strpos($this-&gt;callback, "&lt;int&gt;0&lt;/int&gt;") ? true : false;
 }

}
?&gt;</pre>
<p><span id="more-230"></span></p>
<pre class="php">&lt;?php

/*
//测试
$ping = new ping();
$ping-&gt;method("HeQee",
      "http://www.heqee.com",
      "http://www.heqee.com/php-google-ping/",
      "http://www.heqee.com/feed/");

//google
if($ping-&gt;google()){
 echo "google ping success!";
}else{
 echo "google ping fail";
}
echo "&lt;br&gt;";

//baidu
if($ping-&gt;baidu()){
 echo "baidu ping success!";
}else{
 echo "baidu ping fail";
}
*/

?&gt;</pre>
<p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fgoogle-voice-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-google-ping%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Voice 短信发送接口PHP开源版</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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-google-ping%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-google-ping%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fphp-english-pseudo-original%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-google-ping%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现英文站在线伪原创</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.heqee.com%2Fip-iplocation-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-google-ping%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IP归属地查询接口PHP版</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.heqee.com/php-google-ping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP简单利用token防止表单重复提交</title>
		<link>http://www.heqee.com/php-token-prevent-duplicate-form-submit/</link>
		<comments>http://www.heqee.com/php-token-prevent-duplicate-form-submit/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 16:47:27 +0000</pubDate>
		<dc:creator>xfeng</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[token]]></category>

		<guid isPermaLink="false">http://www.heqee.com/?p=228</guid>
		<description><![CDATA[今天更新了几篇文章，再发一个很小很小的东西吧。希望能帮到路过的初学者 &#60;?php /* * PHP简单利用token防止表单重复提交 * 此处理方法纯粹是为了给初学者参考 */ session_start(); function set_token() {  $_SESSION['token'] = md5(microtime(true)); } function valid_token() {  $return &#8230; <a href="http://www.heqee.com/php-token-prevent-duplicate-form-submit/" class="more-link">了解更多</a><p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fphp-english-pseudo-original%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现英文站在线伪原创</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.heqee.com%2Fignore_user_abort%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP关闭浏览器后仍然继续执行的函数[PHP计划任务]</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>
<pre name="code" class="php" >
&lt;?php
/*
* PHP简单利用token防止表单重复提交
* 此处理方法纯粹是为了给初学者参考
*/
session_start();
function set_token()
{
 $_SESSION['token'] = md5(microtime(true));
}
function valid_token()
{
 $return = $_REQUEST['token'] === $_SESSION['token'] ? true : false;
 set_token();
 return $return;
}
//如果token为空则生成一个token
if( !isset($_SESSION['token'] )
 || $_SESSION['token'] == '' )
{
 set_token();
}

if(isset($_POST['test'])){
 if(!valid_token()){
  echo "token error";
 }else{
  echo time();
 }
}
?&gt;
&lt;form method=post action=""&gt;
 &lt;input type="hidden" name="token" value="&lt;?=$_SESSION['token']?&gt;"&gt;
 &lt;input type="text" name="test" value="value"&gt;
 &lt;input type="submit"&gt;
&lt;/form&gt; </pre>
<p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fphp-english-pseudo-original%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现英文站在线伪原创</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.heqee.com%2Fignore_user_abort%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP关闭浏览器后仍然继续执行的函数[PHP计划任务]</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.heqee.com/php-token-prevent-duplicate-form-submit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP实现英文站在线伪原创</title>
		<link>http://www.heqee.com/php-english-pseudo-original/</link>
		<comments>http://www.heqee.com/php-english-pseudo-original/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 16:33:36 +0000</pubDate>
		<dc:creator>xfeng</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Share]]></category>

		<guid isPermaLink="false">http://www.heqee.com/?p=224</guid>
		<description><![CDATA[ 从代码中可以看出来这个是一个调用远程(http://semthinking.com/rewrite/index.php)的一个函数，写下来放给需要的同学。 &#60;?php /* *  实现英文伪原创 */ function rewrite($article,$test = 0,$level = 3,$percent = 10){   $url = 'http://semthinking.com/rewrite/index.php' ;   $fields = &#8230; <a href="http://www.heqee.com/php-english-pseudo-original/" class="more-link">了解更多</a><p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-english-pseudo-original%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-english-pseudo-original%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-english-pseudo-original%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fgoogle-voice-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-english-pseudo-original%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Voice 短信发送接口PHP开源版</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.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-english-pseudo-original%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP简单利用token防止表单重复提交</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> 从代码中可以看出来这个是一个调用远程(http://semthinking.com/rewrite/index.php)的一个函数，写下来放给需要的同学。</p>
<pre name="code" class="php" >&lt;?php
/*
*  实现英文伪原创
*/
function rewrite($article,$test = 0,$level = 3,$percent = 10){
  $url = 'http://semthinking.com/rewrite/index.php' ;
  $fields = array(
   'article'=&gt;urlencode($article) ,
   'level'=&gt;urlencode($level) ,
   'percent'=&gt;urlencode($percent) ,
   'test'=&gt;urlencode($test) ,
   'submit'=&gt;urlencode("Rewrite now") ,
  );
  foreach($fields as $key=&gt;$value) {
   $fields_string .= $key.'='.$value.'&amp;' ;
  }
  rtrim($fields_string ,'&amp;') ;
  $ch = curl_init() ;
  curl_setopt($ch, CURLOPT_URL,$url) ;
  curl_setopt($ch, CURLOPT_POST,count($fields)) ;
  curl_setopt($ch, CURLOPT_POSTFIELDS,$fields_string) ;
  ob_start();  
  curl_exec($ch);  
  $result = ob_get_contents() ;  
  ob_end_clean();  
  preg_match_all("'&lt;hr size\=1&gt;(.*)&lt;script'isU",$result,$rewrited);
  $rewrited = $rewrited[1][0] == '' ? $article : $rewrited[1][0];
  return $rewrited;

}
?&gt;</pre>
<p>使用实例如下<br />
<span id="more-224"></span></p>
<pre name="code" class="php" >&lt;?php
//定义一个待处理字符串
$article = &lt;&lt;&lt;END
Protect your loved ones in Carnia by joining the adventure!
What would it take to change a warrior's destiny?
The Big Adventure! Inotia3: Children of Carnia!
An inevitable fate lies before the children of Carnia. The greatest epic adventure by far! The Chronicles of Inotia 3! The new legend is about to begin in the continent of Inotia.
"With the coming of age ritual ahead, Lucio and Ameli from Carnia village happen to be acquiring guntlets, and the adventure stirred up by these guntlets leads to a consequence that is a way beyond their imaginations... Lucio and Ameli realize soon that they have extraordinary destinies lain before them... Warriors' fates have been predestined for thousands of years already... Will those who are born to be warriors be happy after all?
END;

//测试高亮替换字符
//echo rewrite($article,1);
//显示替换后的内容
echo rewrite($article);
?&gt;</pre>
<p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-english-pseudo-original%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-english-pseudo-original%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-english-pseudo-original%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fgoogle-voice-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-english-pseudo-original%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Voice 短信发送接口PHP开源版</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.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-english-pseudo-original%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP简单利用token防止表单重复提交</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.heqee.com/php-english-pseudo-original/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bat批处理用Javac编译Android工程</title>
		<link>http://www.heqee.com/bat-javac-android-project/</link>
		<comments>http://www.heqee.com/bat-javac-android-project/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 08:33:37 +0000</pubDate>
		<dc:creator>xfeng</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[bat]]></category>

		<guid isPermaLink="false">http://www.heqee.com/?p=218</guid>
		<description><![CDATA[&#160; 前段时间学习Android，然后就对Android的怎么编译比较感兴趣，就上网搜索资料研究了一番。利用 Bat批处理来利用Javac编译Android工程。 @echo off  echo "&#62;&#62;&#62;&#62; Command line Compiler APK &#62;&#62;&#62;&#62; &#60;br&#62;" echo " &#62;&#62;&#62;&#62; Coding by xfeng &#62;&#62;&#62;&#62; &#8230; <a href="http://www.heqee.com/bat-javac-android-project/" class="more-link">了解更多</a><p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fandroid-permission%2F&from=http%3A%2F%2Fwww.heqee.com%2Fbat-javac-android-project%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Android平台上的权限列表</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.heqee.com%2Fzend-guard-50-key%2F&from=http%3A%2F%2Fwww.heqee.com%2Fbat-javac-android-project%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Zend Guard 5.0 key 注册码[已过期]</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.heqee.com%2Fblog-pr4%2F&from=http%3A%2F%2Fwww.heqee.com%2Fbat-javac-android-project%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">开博二个月,升到PR4</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.heqee.com%2Fip-iplocation-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fbat-javac-android-project%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IP归属地查询接口PHP版</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>&nbsp;</p>
<p>前段时间学习Android，然后就对Android的怎么编译比较感兴趣，就上网搜索资料研究了一番。利用</p>
<p>Bat批处理来利用Javac编译Android工程。</p>
<pre lang="bash" line="4" escaped="true">@echo off 
echo "&gt;&gt;&gt;&gt; Command line Compiler APK &gt;&gt;&gt;&gt; &lt;br&gt;"
echo " &gt;&gt;&gt;&gt; Coding by xfeng &gt;&gt;&gt;&gt; &lt;br&gt;"
echo "&gt;&gt;&gt;&gt; Project dir: %1 &gt;&gt;&gt;&gt; &lt;br&gt;"
echo "&gt;&gt;&gt;&gt; APK file name: %2 &gt;&gt;&gt;&gt; &lt;br&gt;"
echo "&gt;&gt;&gt;&gt; Java src dir : %3 &gt;&gt;&gt;&gt; &lt;br&gt;"

echo "&gt;&gt;&gt;&gt; Use aapt.exe to create R.java &gt;&gt;&gt;&gt; &lt;br&gt;"
%~dp0\aapt.exe package -f -m -J %1\gen -S %1\res -A %1\assets -I %~dp0\lib\android.jar -M %1\AndroidManifest.xml

echo "&gt;&gt;&gt;&gt; Compile .java to .class &gt;&gt;&gt;&gt; &lt;br&gt;"
javac -target 1.6 -bootclasspath %~dp0\lib\android.jar -classpath %1\libs\HeQee.jar -d %1\bin %1\src\%3\*.java %1\gen\%3\R.java

echo "&gt;&gt;&gt;&gt; Use dx.bat to create classes.dex &gt;&gt;&gt;&gt; &lt;br&gt;"
call %~dp0\dx.bat --dex --output=%1\bin\classes.dex %1\bin %1\libs
echo "&gt;&gt;&gt;&gt; Use aapt.exe to create resources.ap_  &gt;&gt;&gt;&gt; &lt;br&gt;"
%~dp0\aapt.exe package -f  -M %1\AndroidManifest.xml -S %1\res -A %1\assets -I %~dp0\lib\android.jar -F %1\bin\resources.ap_ 

echo "&gt;&gt;&gt;&gt; Create unsigned APK &gt;&gt;&gt;&gt; &lt;br&gt;"
call %~dp0\apkbuilder.bat %1\bin\%2 -u -z %1\bin\resources.ap_ -f %1\bin\classes.dex -rf %1\src -rj %1\libs

echo "&gt;&gt;&gt;&gt; Sign the Apk &gt;&gt;&gt;&gt; &lt;br&gt;"

:正式发布签名
jarsigner -keystore %~dp0\heqee.keystore -storepass 20070110 -keypass 20070110 -signedjar %1\bin\signed.%2 %1\bin\%2 heqee

echo "&gt;&gt;&gt;&gt; Compile Done &gt;&gt;&gt;&gt; &lt;br&gt;"

exit
pause
@echo on</pre>
<p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fandroid-permission%2F&from=http%3A%2F%2Fwww.heqee.com%2Fbat-javac-android-project%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Android平台上的权限列表</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.heqee.com%2Fblog-pr4%2F&from=http%3A%2F%2Fwww.heqee.com%2Fbat-javac-android-project%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">开博二个月,升到PR4</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.heqee.com%2Fzend-guard-50-key%2F&from=http%3A%2F%2Fwww.heqee.com%2Fbat-javac-android-project%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Zend Guard 5.0 key 注册码[已过期]</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.heqee.com%2Flinux-jsp-install-tomcat-jdk%2F&from=http%3A%2F%2Fwww.heqee.com%2Fbat-javac-android-project%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux搭建JSP环境之安装tomcat和JDK</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.heqee.com%2Fgoogle-voice-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fbat-javac-android-project%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Voice 短信发送接口PHP开源版</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.heqee.com/bat-javac-android-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>目前可用的PHP飞信发送类</title>
		<link>http://www.heqee.com/php-fetion/</link>
		<comments>http://www.heqee.com/php-fetion/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 08:22:59 +0000</pubDate>
		<dc:creator>xfeng</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[feition]]></category>
		<category><![CDATA[SMS]]></category>

		<guid isPermaLink="false">http://www.heqee.com/?p=213</guid>
		<description><![CDATA[此类来自blog.quanhz.com，这个是基于f.10086.cn wap站点，目前还可以使用。分享给大家。 我可能会更新不及时，如果一下代码运行错误，请到官方去下载： http://code.google.com/p/php-fetion/ &#60;?php /**  * PHP飞信发送类  */ class fetion {   //发送者手机号   protected $_mobile;   //飞信密码   protected $_password;    //Cookie字符串 &#8230; <a href="http://www.heqee.com/php-fetion/" class="more-link">了解更多</a><p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Ffetion-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-fetion%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">飞信好友免费短信API接口PHP开源版</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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-fetion%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-fetion%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fgoogle-voice-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-fetion%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Voice 短信发送接口PHP开源版</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.heqee.com%2Fphp-english-pseudo-original%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-fetion%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现英文站在线伪原创</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>此类来自<a href="http://blog.quanhz.com" target="_blank" rel="nofollow">blog.quanhz.com</a>，这个是基于f.10086.cn wap站点，目前还可以使用。分享给大家。</p>
<h3>我可能会更新不及时，如果一下代码运行错误，请到官方去下载：</h3>
<p><a href="http://code.google.com/p/php-fetion/" target="_blank" rel="nofollow">http://code.google.com/p/php-fetion/</a></p>
<pre name="code" class="php" >&lt;?php
/**
 * PHP飞信发送类
 */
class fetion {
  //发送者手机号
  protected $_mobile;
  //飞信密码
  protected $_password;
   //Cookie字符串
  protected $_cookie = '';
  //构造函数
  public function __construct($mobile,$password) {
    if($mobile === '' || $password === '') {
      return false;
    }
    $this-&gt;_mobile = $mobile;
    $this-&gt;_password = $password;
    $this-&gt;_login();
  }
   //析构函数
  public function __destruct() {
    $this-&gt;_logout();
  }
  //登录
  protected function _login() {
    $uri = '/im/login/inputpasssubmit1.action';
    $data = 'm='.$this-&gt;_mobile.'&amp;pass='.urlencode($this-&gt;_password).'&amp;loginstatus=1';
    $result = $this-&gt;_postWithCookie($uri, $data);
    // 解析Cookie
    preg_match_all('/.*?\r\nSet-Cookie: (.*?);.*?/si', $result, $matches);
    if(isset($matches[1])) {
     $this-&gt;_cookie = implode('; ', $matches[1]);
    }
    return $result;
  }
  //向指定的手机号发送飞信
  public function send($mobile, $message) {
    if($message === '') {
      return '';
    }
    // 判断是给自己发还是给好友发
    if($mobile == $this-&gt;_mobile) {
      return $this-&gt;_toMyself($message);
    } else {
      $uid = $this-&gt;_getUid($mobile);
      return $uid === '' ? '' : $this-&gt;_toUid($uid, $message);
    }
  }
  //获取飞信ID
  protected function _getUid($mobile) {
    $uri = '/im/index/searchOtherInfoList.action';
    $data = 'searchText='.$mobile;
    $result = $this-&gt;_postWithCookie($uri, $data);
    // 匹配
    preg_match('/toinputMsg\.action\?touserid=(\d+)/si', $result, $matches);
    return isset($matches[1]) ? $matches[1] : '';
  }
  //向好友发送飞信
  protected function _toUid($uid, $message) {
    $uri = '/im/chat/sendMsg.action?touserid='.$uid;
    $data = 'msg='.urlencode($message);
    $result = $this-&gt;_postWithCookie($uri, $data);
    return $result;
  }
  //给自己发飞信
  protected function _toMyself($message) {
    $uri = '/im/user/sendMsgToMyselfs.action';
    $result = $this-&gt;_postWithCookie($uri, 'msg='.urlencode($message));
    return $result;
  }
  //退出飞信
  protected function _logout() {
    $uri = '/im/index/logoutsubmit.action';
    $result = $this-&gt;_postWithCookie($uri, '');
    return $result;
  }
  //携带Cookie向f.10086.cn发送POST请求
  protected function _postWithCookie($uri, $data) {
    $fp = fsockopen('f.10086.cn', 80);
    fputs($fp, "POST $uri HTTP/1.1\r\n");
    fputs($fp, "Host: f.10086.cn\r\n");
    fputs($fp, "Cookie: {$this-&gt;_cookie}\r\n");
    fputs($fp, "Content-Type: application/x-www-form-urlencoded\r\n");
    fputs($fp, "Content-Length: ".strlen($data)."\r\n");
    fputs($fp, "Connection: close\r\n\r\n");
    fputs($fp, $data);
    $result = '';
    while(!feof($fp)) {
      $result .= fgets($fp);
    }
    fclose($fp);
    return $result;
  }
}
?&gt;</pre>
<p>使用实例</p>
<pre name="code" class="php" > &lt;?php
//实例化 登录
$fetion = new fetion("手机号码","飞信密码");
//发送信息
$fetion -&gt; send("信息内容","接收人的号码");
?&gt;</pre>
<p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Ffetion-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-fetion%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">飞信好友免费短信API接口PHP开源版</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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-fetion%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-fetion%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fgoogle-voice-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-fetion%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Voice 短信发送接口PHP开源版</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.heqee.com%2Fphp-english-pseudo-original%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-fetion%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现英文站在线伪原创</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.heqee.com/php-fetion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux搭建JSP环境之安装tomcat和JDK</title>
		<link>http://www.heqee.com/linux-jsp-install-tomcat-jdk/</link>
		<comments>http://www.heqee.com/linux-jsp-install-tomcat-jdk/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 05:39:18 +0000</pubDate>
		<dc:creator>xfeng</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.heqee.com/?p=205</guid>
		<description><![CDATA[一、安装JDK 1、首先到Java的网站上下载JDK [root@www ~]wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-i586-rpm.bin 2、通过chmod +x jdk-6u25-linux-i586-rpm.bin命令给用户添加可执行权限 3、通过./jdk-6u25-linux-i586-rpm.bin命令来执行安装 4、设置环境变量，在etc/profile文件的最后添加如下几行 #set java enviroment export JAVA_HOME=/usr/java/jdk1.6.0_25 export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH 5、执行source &#8230; <a href="http://www.heqee.com/linux-jsp-install-tomcat-jdk/" class="more-link">了解更多</a><p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fblog-pr4%2F&from=http%3A%2F%2Fwww.heqee.com%2Flinux-jsp-install-tomcat-jdk%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">开博二个月,升到PR4</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.heqee.com%2Fzend-guard-50-key%2F&from=http%3A%2F%2Fwww.heqee.com%2Flinux-jsp-install-tomcat-jdk%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Zend Guard 5.0 key 注册码[已过期]</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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Flinux-jsp-install-tomcat-jdk%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fbat-javac-android-project%2F&from=http%3A%2F%2Fwww.heqee.com%2Flinux-jsp-install-tomcat-jdk%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Bat批处理用Javac编译Android工程</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>一、安装JDK<br />
1、首先到Java的网站上下载JDK</p>
<pre lang="bash" line="1" escaped="true">[root@www ~]wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-i586-rpm.bin</pre>
<p>2、通过chmod +x jdk-6u25-linux-i586-rpm.bin命令给用户添加可执行权限<br />
3、通过./jdk-6u25-linux-i586-rpm.bin命令来执行安装<br />
4、设置环境变量，在etc/profile文件的最后添加如下几行</p>
<pre lang="bash" line="4" escaped="true">#set java enviroment
export JAVA_HOME=/usr/java/jdk1.6.0_25
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH</pre>
<p>5、执行source /etc/profile命令，source的作用是在当前bash环境下读取并执行file name中的命令</p>
<pre lang="bash" line="1" escaped="true">[root@www ~]# source /etc/profile</pre>
<p>我猜Linux启动时会去读取该profile中的配置，但是我在第四步做的更新却不会没有生效，所有需要执行上面的source命令<br />
<span id="more-205"></span><br />
6、ok,检查JDK是否安装成功，如下说明已经成功安装</p>
<pre lang="bash" line="4" escaped="true">[root@www apache-tomcat-7.0.19]# java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Server VM (build 20.0-b11, mixed mode)</pre>
<p>二、安装Tomcat<br />
1、首先到Apache网站下载Tomcat,最新版是7.0.19</p>
<pre lang="bash" line="1" escaped="true">[root@www ~]#wget http://labs.renren.com/apache-mirror/tomcat/tomcat-7/v7.0.19/bin/apache-tomcat-7.0.19.tar.gz</pre>
<p>2、下载好后，解压缩</p>
<pre lang="bash" line="1" escaped="true">[root@www ~]#tar zxvf apache-tomcat-7.0.19.tar.gz</pre>
<p>3、将解压缩的文件移到/usr/local目录下</p>
<pre lang="bash" line="1" escaped="true">[root@www ~]#mv apache-tomcat-7.0.19 /usr/local/</pre>
<p>4、OK，到/usr/local/apache-tomcat-7.0.19目录下执行./bin/startup.sh就可以启动tomcat了</p>
<pre lang="bash" line="1" escaped="true">[root@www ~]#cd /usr/local/apache-tomcat-7.0.19
[root@www ~]# ./bin/startup.sh</pre>
<p>5、在浏览器中查看一下是否成功安装，在地址栏中输入<a href="http://127.0.0.1:8080/">http://127.0.0.1:8080/</a><br />
6、好了，开始你的JAVA WEB编程之旅吧</p>
<p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fzend-guard-50-key%2F&from=http%3A%2F%2Fwww.heqee.com%2Flinux-jsp-install-tomcat-jdk%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Zend Guard 5.0 key 注册码[已过期]</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.heqee.com%2Fblog-pr4%2F&from=http%3A%2F%2Fwww.heqee.com%2Flinux-jsp-install-tomcat-jdk%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">开博二个月,升到PR4</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.heqee.com%2Fip-iplocation-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Flinux-jsp-install-tomcat-jdk%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IP归属地查询接口PHP版</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.heqee.com%2Fphp-english-pseudo-original%2F&from=http%3A%2F%2Fwww.heqee.com%2Flinux-jsp-install-tomcat-jdk%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现英文站在线伪原创</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.heqee.com/linux-jsp-install-tomcat-jdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP邮件留言本开源版</title>
		<link>http://www.heqee.com/php-mail-guestbook/</link>
		<comments>http://www.heqee.com/php-mail-guestbook/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 05:17:04 +0000</pubDate>
		<dc:creator>xfeng</dc:creator>
				<category><![CDATA[Archives]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[guestbook]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.heqee.com/?p=166</guid>
		<description><![CDATA[下载后配置libs/cfg_mail.php文件即可，基于PHPMailer 本程序仅为不懂程序的新手提供帮助。老手请路过。 2010年8月12日更新 修正了Firefox浏览器和Opera下面提示&#8221;请输入内容&#8221;和乱码问题。请大家下载最新的源码进行测试。谢谢wkl17 同学的反馈. PS：本站演示地址显示&#8221;正在发送&#8221;是因为我的邮箱SMTP发生问题。已经修复 2010年7月17日更新 发布之后，有同学反映邮件内容无法换行请将index.html大概92行的 var message= $("#message").val(); 更换成 var message = document.getElementById("message").value; message = message.replace(/\r\n/ig,""); 即可解决此问题。感谢chm同学！ &#8230; <a href="http://www.heqee.com/php-mail-guestbook/" class="more-link">了解更多</a><p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fgoogle-voice-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-mail-guestbook%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Voice 短信发送接口PHP开源版</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.heqee.com%2Ffetion-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-mail-guestbook%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">飞信好友免费短信API接口PHP开源版</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.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-mail-guestbook%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP简单利用token防止表单重复提交</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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-mail-guestbook%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-mail-guestbook%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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>下载后配置libs/cfg_mail.php文件即可，基于PHPMailer</p>
<p>本程序仅为不懂程序的新手提供帮助。老手请路过。</p>
<h4>2010年8月12日更新</h4>
<p>修正了Firefox浏览器和Opera下面提示&#8221;请输入内容&#8221;和乱码问题。请大家<a href="http://www.heqee.com/apps/download/MGuestbook.rar"><strong>下载</strong></a>最新的源码进行测试。谢谢wkl17 同学的反馈.</p>
<p>PS：本站演示地址显示&#8221;正在发送&#8221;是因为我的邮箱SMTP发生问题。已经修复</p>
</p>
<h4>2010年7月17日更新</h4>
<p>发布之后，有同学反映邮件内容无法换行请将index.html大概92行的</p>
<pre lang="javascript" line="1" escaped="true">
var message= $("#message").val();</pre>
<p>更换成</p>
<pre lang="javascript" line="1" escaped="true">
var message = document.getElementById("message").value;
message = message.replace(/\r\n/ig,"<br/>");
</pre>
<p>即可解决此问题。感谢chm同学！</p>
<pre name="code" class="php" >&lt;?php
$cfg =  array(
	//smtp or mail  一般不需要改动
	'send_type'=>"smtp",
	//发送邮箱
	'from_email'=>"yourname@heqee.com",
	//接收邮箱。也可以用发送邮箱作为收件箱
	'to_email'=>"yourname@heqee.com",
	//邮件标题
	'from_title'=>"[HeQee]在线邮件留言",
	//邮件发送人名称
	'from_name'=>"HeQee Studio",
	//邮件编码 一般不需要改动
	'charset'=>	"utf-8",
	//例smtp.gmail.com smtp.163.com
	'smtp_server'=>"smtp.163.com",
	//默认是25，如果SSL的就用465 smtp.gmail.com 就用465
	'smtp_port'=>"25",
	// 如果SSL的 0 or 1
	'smtp_ssl'=>0,
	//身份认证 一般不需要改动
	'smtp_auth'=>1,
	//发送邮箱账户
	'smtp_user'=>"yourname",
	//发送邮箱密码
	'smtp_pwd'=>"password",
);
?&gt;</pre>
<p>演示：<a href="http://www.heqee.com/apps/guestbook/">http://www.heqee.com/apps/guestbook/</a><br />
下载开源代码地址：<a href="http://www.heqee.com/apps/download/MGuestbook.rar">http://www.heqee.com/apps/download/MGuestbook.rar</a></p>
<p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fgoogle-voice-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-mail-guestbook%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Voice 短信发送接口PHP开源版</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.heqee.com%2Ffetion-sms-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-mail-guestbook%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">飞信好友免费短信API接口PHP开源版</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.heqee.com%2Fphp-token-prevent-duplicate-form-submit%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-mail-guestbook%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP简单利用token防止表单重复提交</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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-mail-guestbook%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Fphp-mail-guestbook%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com/php-mail-guestbook/feed/</wfw:commentRss>
		<slash:comments>89</slash:comments>
		</item>
		<item>
		<title>PHP关闭浏览器后仍然继续执行的函数[PHP计划任务]</title>
		<link>http://www.heqee.com/ignore_user_abort/</link>
		<comments>http://www.heqee.com/ignore_user_abort/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 03:32:47 +0000</pubDate>
		<dc:creator>xfeng</dc:creator>
				<category><![CDATA[Archives]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.heqee.com/?p=150</guid>
		<description><![CDATA[备忘一下这个函数: 函数名称：ignore_user_abort 官方说明：http://cn2.php.net/manual/en/function.ignore-user-abort.php 使用方法： //即使Client断开(如关掉浏览器),PHP脚本也可以继续执行. ignore_user_abort(true); 这样就可以实现计划任务效果了.但是还是要客户端访问程序才行. 比如说在生成静态页面、采集的时候，不需要在等待了。关掉浏览器吧。 例子: //test set_time_limit(0); ignore_user_abort(true); $i = 0 ; while($i ++ < 200){ &#8230; <a href="http://www.heqee.com/ignore_user_abort/" class="more-link">了解更多</a><p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Fignore_user_abort%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Fignore_user_abort%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fphp-english-pseudo-original%2F&from=http%3A%2F%2Fwww.heqee.com%2Fignore_user_abort%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现英文站在线伪原创</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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Fignore_user_abort%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com%2Fip-iplocation-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fignore_user_abort%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IP归属地查询接口PHP版</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></code>备忘一下这个函数:<br />
函数名称：ignore_user_abort<br />
官方说明：http://cn2.php.net/manual/en/function.ignore-user-abort.php<br />
使用方法：</p>
<pre name="code" class="php" >
//即使Client断开(如关掉浏览器),PHP脚本也可以继续执行.
ignore_user_abort(true); </pre>
<p>这样就可以实现计划任务效果了.但是还是要客户端访问程序才行.<br />
比如说在生成静态页面、采集的时候，不需要在等待了。关掉浏览器吧。<br />
例子:</p>
<pre name="code" class="php" >
//test
set_time_limit(0);
ignore_user_abort(true);
$i = 0 ;
while($i ++ < 200){
    file_put_contents($i.'.php' , $i);
    sleep(3);
}
</pre>
<p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fphp-google-ping%2F&from=http%3A%2F%2Fwww.heqee.com%2Fignore_user_abort%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现Google ping服务快速收录</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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Fignore_user_abort%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fphp-english-pseudo-original%2F&from=http%3A%2F%2Fwww.heqee.com%2Fignore_user_abort%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP实现英文站在线伪原创</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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Fignore_user_abort%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com%2Fip-iplocation-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Fignore_user_abort%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IP归属地查询接口PHP版</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.heqee.com/ignore_user_abort/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>完美解决failed to open stream: HTTP request failed!</title>
		<link>http://www.heqee.com/failed-to-open-stream-http-request-failed/</link>
		<comments>http://www.heqee.com/failed-to-open-stream-http-request-failed/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 04:58:34 +0000</pubDate>
		<dc:creator>xfeng</dc:creator>
				<category><![CDATA[Archives]]></category>

		<guid isPermaLink="false">http://www.heqee.com/?p=126</guid>
		<description><![CDATA[在工作中遇到这个问题，后完美解决，故分享给大家。 我批量抓取chemblink的结构式发现循环后有部分图片无法显示，而远程文件是存在的。 抓取远程文件的时候出现类似Warning: readfile(http://www.chemblink.com/structures/643-79-8.gif) [function.readfile]: failed to open stream: HTTP request failed! 这样的警告信息，我使用的是 ob_start(); readfile("http://www.chemblink.com/structures/643-79-8.gif"); $img = ob_get_contents(); ob_end_clean();   &#8230; <a href="http://www.heqee.com/failed-to-open-stream-http-request-failed/" class="more-link">了解更多</a><p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fblog-pr4%2F&from=http%3A%2F%2Fwww.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">开博二个月,升到PR4</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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fip-iplocation-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IP归属地查询接口PHP版</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.heqee.com%2Fignore_user_abort%2F&from=http%3A%2F%2Fwww.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP关闭浏览器后仍然继续执行的函数[PHP计划任务]</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>在工作中遇到这个问题，后完美解决，故分享给大家。<br />
我批量抓取chemblink的结构式发现循环后有部分图片无法显示，而远程文件是存在的。<br />
抓取远程文件的时候出现类似Warning: readfile(http://www.chemblink.com/structures/643-79-8.gif) [function.readfile]: failed to open stream: HTTP request failed! 这样的警告信息，我使用的是</p>
<pre name="code" class="php" >
ob_start();
readfile("http://www.chemblink.com/structures/643-79-8.gif");
$img = ob_get_contents();
ob_end_clean();
</pre>
<p> <br />
这样在运行中会时不时的出现上述错误，我也换过file_get_contents等其他函数都没用用，在网上查阅后发现用CURL方法抓取不会出错</p>
<pre name="code" class="php" >
$url = "http://www.chemblink.com/structures/643-79-8.gif";
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT,10);
$img = curl_exec($ch);
</pre>
<p><hr color="#e0e0e0">
<div style="font-family: verdana,arial; font-size: 9px; color: rgb(85, 85, 85);">
Copyright © 2009-2011 HeQee. All rights reserved.<br>
<a target="_blank" href="http://www.heqee.com">HeQee</a> | <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>
</div></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  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.heqee.com%2Fblog-pr4%2F&from=http%3A%2F%2Fwww.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">开博二个月,升到PR4</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.heqee.com%2Fphp-fetion%2F&from=http%3A%2F%2Fwww.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">目前可用的PHP飞信发送类</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.heqee.com%2Fphp-mail-guestbook%2F&from=http%3A%2F%2Fwww.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP邮件留言本开源版</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.heqee.com%2Fip-iplocation-api%2F&from=http%3A%2F%2Fwww.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IP归属地查询接口PHP版</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.heqee.com%2Fignore_user_abort%2F&from=http%3A%2F%2Fwww.heqee.com%2Ffailed-to-open-stream-http-request-failed%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP关闭浏览器后仍然继续执行的函数[PHP计划任务]</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.heqee.com/failed-to-open-stream-http-request-failed/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

