易截截图软件、单文件、免安装、纯绿色、仅160KB

php代理访问

最近想写个软件玩玩,抓取网页上的内容
抓取网页内容的我放在一个文件中写成类了
以下是代码
<?php
class myhttp
{
    var $_host;
    var $_url;
    var $_port;
    var $_errno;
    var $_errstr;
    var $_header;
    var $_body;
   
    function __construct($url)
    {
        if($url) setUrl($url);
    }
   
    function setUrl($url)
    {
        if(preg_match("{http://([^/]+)[:(\\d+)]?(.+)}",$url,$match))
        {
            $this->_host = $match[1];
            if(count($match) == 3)
            {
                $this->_port = 80;
                $this->_url = $match[2];
            }
            else
            {
                $this->_port = $match[2];
                $this->_url = $match[3];
            }
            $this->$_header = array();
            $this->$_body = "";
        }
        else
        {
          &nbs


相关文档:

PHP生成word文档

<?PHP
$word = new COM("word.application") or die("Can't start Word!");
// print the version of Word that's now in use
echo "Loading Word, v. {$word->Version}";
// set the visibility of the application to 0 (false)
// to open the application in the forefront, use 1 (true)
$word->Visibl ......

PHP/MYSQL实现按字母检索

方法一:建一个拼音表 t_cosler ,存放每个字母开头的第一个汉字的编号和最后一个汉字的编号。   
BatchFile code+------+--------+-------+  
| f_PY | cBegin | cEnd  |  
+------+--------+-------+  
| A    |  45217 | 45252 | & ......

使用 CodeIgniter 框架快速开发 PHP 应用(二)

二分钟: 建立一个 CodeIgniter 网站
用CI建一个网站很容易。 这一章很短,解释了用CI制作网站时发生了些什么,哪些文件被创建,让我们来瞧一瞧:
. 创建网站需要什么软件?
. 安装 CI 文件: 一个简单的下载和解压缩操作
. CI 的基本设置: 有哪些文件夹及它们是如何组织的
. CI 安装时默认的控制器和视图
. 一些简单的 ......

PHP中使用HTTP协议的状态码

<?PHP
/**
* HTTP Protocol defined status codes
* @param int $num
*/
function https($num) {
$http = array (
100 => "HTTP/1.1 100 Continue",
101 => "HTTP/1.1 101 Switching Protocols",
200 => "HTTP/1.1 200 OK",
201 => "HTTP/1.1 201 Created",
202 => "HTTP/1.1 202 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号