易截截图软件、单文件、免安装、纯绿色、仅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高手的五个秘籍 南三方

经常有一些经验不足的PHP开发人员在Freenode的php IRC频道上问问题。如果问题很琐碎,或者答案显而易见,或表现得象一个菜鸟,很快他们就会发现会受到如下一些回复的炮轰:“去读该死的手册去吧”,“好好去学一学PHP吧”,“我们不是你个人的导师”或更直接的“你需要成为一个更好的PH ......

用 SWIG 构建 PHP 扩展 南三方

作者:Martin Streicher, 软件开发人员, Pixel, Byte, and Comma
尽管编写一个 PHP 扩展并不是很困难,而 SWIG 的确进一步简化了这项任务,这主要是因为它自动化了结合 PHP 与 C 或 C++ 所需的工作。若给定对一个函数的描绘 — 函数的名称及其形参 — SWIG 就会生成一个包装程序来将 PHP 与低层代码连接起来。 ......

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实现多线程


转:http://blog.iyi.cn/start/
问题:
有没有办法在php中实现多线程呢?
假设你正在写一个基于多台服务器的php应用,理想的情况时同时向多台服务器发送请求,而不是一台接一台。
可以实现吗?
回答:
当有人想要实现并发功能时,他们通常会想到用fork或者spawn threads,但是当他们发现php不支持多线程的时候,大 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号