PHP 日,周,月点击排行统计

yipeiwu_com6年前
复制代码 代码如下: $now=time(); //当前时间 $StrUpdate = "Update $tbl_article set hits=hits+1"; if(date("d...

学习使用curl采集curl使用方法

yipeiwu_com6年前
复制代码 代码如下: <?php $cookie_jar = tempnam('./tmp','cookie'); $ch = curl_init(); curl_setopt($...

比file_get_contents稳定的curl_get_contents分享

yipeiwu_com6年前
分享一个实际在用的函数: 复制代码 代码如下: /*比file_get_contents稳定的多!$timeout为超时时间,单位是秒,默认为1s。*/ function curl_ge...

Uncaught exception com_exception with message Failed to create COM object

yipeiwu_com6年前
Uncaught exception com_exception with message Failed to create COM object
在PHP中调用IE使用如下代码: 复制代码 代码如下: browser = new COM("InternetExplorer.Application"); 无法正常调用,直接报错:...

关于IIS php调用com组件的权限问题

yipeiwu_com6年前
1.运行Dcomcnfg.exe 2.组件服务――计算机――我的电脑 ――DCOM配置――找到microsoft word 文档 3.点击属性 4.选择“安全性” 5.选定“使用自定义访...

php通过COM类调用组件的实现代码

yipeiwu_com6年前
在PHP 4.2.0 至 4.2.3中,可以使用w32api_register_function 函数调用外部的DLL,前提是需要在php.ini中打开扩展的php_w32api.dll...

Trying to clone an uncloneable object of class Imagic的解决方法

yipeiwu_com6年前
在windows下安装完后提示:Fatal error: Trying to clone an uncloneable object of class Imagick in C:\www...

PHP警告Cannot use a scalar value as an array的解决方法

yipeiwu_com6年前
看到php的错误日志里有些这样的提示: [27-Aug-2011 22:26:12] PHP Warning: Cannot use a scalar value as an array...

PHP异步调用socket实现代码

yipeiwu_com6年前
PHP异步调用实现方式 浏览器和服务器之间只一种面向无连接的HTTP协议进行通讯的,面向无连接的程序的特点是客户端请求服务端,服务端根据请求输出相应的程序,不能保持持久连接。 这样就出现...

fgetcvs在linux的问题

yipeiwu_com6年前
看到有人在有汉字的字符串 前加一个 ‘ 或是任意半角符号,让bug将其除掉,不过这样做太麻烦了。最后呢,找来一个模拟fgetcsv功能的函数。 复制代码 代码如下: function _...