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

php socket 浏览器

<?PHP
/**
* patServer
* PHP socket server base class
* Events that can be handled:
*   * onStart
*   * onConnect
*   * onConnectionRefused
*   * onClose
*   * onShutdown
*   * onReceiveData
*
* @version 1.1
* @author   Stephan Schmidt <schst@php-tools.de>
* @package patServer
*/
class patServer{
/**
* information about the project
* @var array $systemVars
*/
var $systemVars   = array(
    "appName"   => "patServer",
    "appVersion"   => "1.1",
    "author"   => array("Stephan Schmidt <schst@php-tools.de>", )
   );
/**
* port to listen
* @var integer   $port
*/
   var $port   = 63333;
/**
* domain to bind to
* @var string $domain
*/
   var $domain   = "192.168.10.2";
/**
* maximum amount of clients
* @var integer $maxClients
*/
   var $maxClients = -1;
/**
* buffer size for socket_read
* @var integer $readBufferSize
*/
   var $readBufferSize   = 128;
/**
* end character for socket_read
* @var integer $readEndCharacter
*/
   var $readEndCharacter = "\n";
/**
* maximum of backlog in queue
* @var integer $maxQueue
*/
   var $maxQueue = 500;
/**
* debug mode
* @var boolean $debug
*/
   var $debug   = true;
/**
* debug mode
* @var string $debugMode
*/
   var $debugMode = "text";
/**
* debug destination (filename or stdout)
* @var string $debugDest
*/
   var $debugDest = "stdout";
/**
* empty array, used for socket_select
* @var array $null
*/
   var $null   = array();
/**
* all file descriptors are stored here
* @var array $clientFD
*/
   var $clientFD = array();
/**
* needed to store client information
* @var array $clientInfo
*/
&nbs


相关文档:

php安装和配置

Windows下PHP的安装虽然简单,但如果不注意方法,仍然会让你头疼。此外,PHP 5.2版本与之前4.x版本也有一些不同,所以有必要记录一下,避免下次忘记了这样的安装配置方法。
步骤一:下载php 5.2 for windows的安装包,解压至C:\php。注意此解压目录可以是在任何盘下,然而目录名不能包含空格;
以下是php5.2的文件目录: ......

《PHP 与 MySQL Web 开发》读书笔记 (一)

概述
1.PHP 是什么?
   PHP 是服务器端解释的脚本语言,它是目前最流行的 web 编程语言之一。  在一个 HTML 页面中可以嵌入PHP代码,这些代码在每次页面访问时执行。PHP 代码将在 Web 服务器中被解释并且生成 HTML或者访问者看到其他输出结果。
2.My SQL 是什么?
   My SQL 是基于 SQL 的完 ......

php 模板写法


<?php
/* @author: zhuyubing@gmail.com */
class Template{
        var $code;
        function Template($template){
            $this->code = implode('', @file($tem ......

how to install apache, PHP and MySQL on Linux 3

how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating ......

PHP初学

   现在对PHP感觉越来越顺手了,对HTML的标签越来越熟悉了,可是对PHP的插件的认识还为之甚少。
   但是,说实话,目前的我貌似也不需要使用PHP的插件,用插件的目的可能是为了显得比较牛吧,呵呵。
   但是还是踏踏实实的学习吧,毕竟额的C++还没有学,对于PHP的封装和编程一点也不了解。 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号