Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ¼¼ÊõÄÚĻѧϰ2

1.php Êý¾ÝÀàÐÍ£º¸¡µãÐÍ,×Ö·û´®,ÕûÐÎ,Âß¼­ÐÍ
2.$a="test"; print($a); ÔÚphp.ini ÖÐÉèÖÃerror_reporting=E_ALL ¾¯¸æ״̬ʱ£¬»áÓÐÌáʾ¡£´ËÓÃÓÚ²âÊÔ䶨ÒåµÄ±äÁ¿¡£¿ÉÒÔʹÓÃisset()¼ì²â±äÁ¿ÊÇ·ñ´æÔÚ,unsetÇå³ý±äÁ¿()£¬³£Á¿¶¨Òådefine("a","test");¶¨ÒåµÄ³£Á¿¾ßÓÐÈ«¾Ö×÷Óá£define ÎÞ·¨¶¨Òå¶ÔÏóµÄÊý¾Ý½á¹¹£¬²»¹ý¿ÉÒÔÏÈ´æ´¢±äÁ¿ ......

PHPÖеÄÅú´¦Àí£¨Ò»£©

ת×Ô£º http://www.phpsoho.com/article/php/200809/09-239.html
Èç¹û Web Ó¦ÓóÌÐòÖеÄÒ»¸öÌØÐÔÐèÒª³¬¹ý 1 Ãë»ò 2 Ãë²ÅÄÜÍê³É£¬ÄÇôӦ¸ÃÔõô°ì£¿ÐèҪijÖÖÀëÏß´¦Àí½â¾ö·½°¸¡£Ñ§Ï°¼¸ÖÖ¶Ô PHP Ó¦ÓóÌÐòÖг¤Ê±¼äÔËÐеÄ×÷Òµ½øÐÐÀëÏß·þÎñµÄ·½·¨¡£
´óÐ͵ÄÁ¬ËøµêÓÐÒ»¸ö´óÎÊÌ⡣ÿÌ죬ÔÚÿ¼ÒÉ̵ê»á·¢ÉúÊýǧ´Î½»Òס ......

how to install apache, PHP and MySQL on Linux

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 operating systems, but most of the steps ought to be valid for all Linux-lik ......

¸½¼ÓÂë¼°ÆäPHP·½Ê½µÄʵÏÖ

Ò»¡¢¸½¼ÓÂëµÄ×÷Óà    
  ¡¡¡¡±¾ÎÄËùÊöµÄ¸½¼ÓÂë½öÖ¸ÔÚWEBÉÏʹÓõĶàÓÃÓÚÉí·ÝÑéÖ¤µÄ¸½¼ÓÂë¡£  
   
  ¡¡¡¡¸½¼ÓÂëµÄÖ÷Òª×÷ÓÿÉÄÜÊÇ·ÀÖ¹±©Á¦·ÃÎÊ£¬ÀýÈ籩Á¦·½Ê½µÄÃÜÂëÆƽâºÍÐÅÏ¢·¢²¼¡£  
   
  ¡¡¡¡¸½¼ÓÂëÔÚÓû§Éí·ÝÑéÖ¤·½ÃæµÄÓ¦ÓÃÄܹ»´ÓÒ»¶¨³Ì¶ÈÉÏ·ÀÖ¹¶ÔÓû ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ