yipeiwu_com6年前
复制代码 代码如下:<? //采集首页地址 $url="http://emotion.pclady.com.cn/skills/"; //获取页面代码 $rs=file_get_c...
yipeiwu_com6年前
复制代码 代码如下:<?php require('chinese.php'); class PDF extends PDF_Chinese { function Header()...
yipeiwu_com6年前
模板文件template.htm: 复制代码 代码如下:<html> <head> <title>%title%</title> <...
yipeiwu_com6年前
因为在本地测试完全没有问题,所以ssh到远程服务器上(不是发布服务器,建议不要直接在Publish Server上直接改东西),进行了一下断点的测试,最后发现是一个比较复杂的逻辑中有个函...
yipeiwu_com6年前
复制代码 代码如下://生成where字符串 function get_where($arg = null) { foreach ((array)$arg as $key => $...
yipeiwu_com6年前
复制代码 代码如下:function randStr($len) { $chars='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmn...
yipeiwu_com6年前
官方手册给出了以下范例: 复制代码 代码如下:<?php // 使用了NameSpace的例子 namespace Foobar; class Foo { static publi...
yipeiwu_com6年前
后来发现sourcesafe管理界面,(Admin登录),tools——Options——File Types——File Group——Add "PHP"——“*.php;*.phpp...
yipeiwu_com6年前
pcntl_fork()函数就是为当前的进程创建一个子进程。并且先运行父进程,返回的是子进程的PID,肯定大于零。在父进程的代码中可以用pcntl_fork(&$status)暂停父进程...
yipeiwu_com6年前
1. 什么是phpDocumentor ? PHPDocumentor 是一个用PHP写的工具,对于有规范注释的php程序,它能够快速生成具有相互参照,索引等功能的API文档。老的版本是...