Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

PHP½¨Á¢scoketÁ¬½Ócs·þÎñÆ÷ÎÊÌ⣬¸ßÊÖÇë½ø£¡

PHP code:

$gS=new getService();
//61.152.167.18:5525
$gS->init("61.152.167.18:5525",10);
$gS->_connect();
$gS->_writeData("info");
$gS->_readData();
$gS->_disconnect();

class getService{
var $errno=5;
var $errstr="error";
function init($str,$_timeout){
$arr=explode(':',$str);
$this->_ip=$arr[0];
$this->_port=$arr[1];
$this->_timeout=$_timeout;
}
function _connect(){
if (!$this->_socket = @fsockopen("udp://".$this->_ip, $this->_port, $errno, $errstr, $this->_timeout)){
return false;
}else{
return true;
}
}

function _disconnect()
{
if (!fclose($this->_socket)) return false;
return true;
}
//ÕâÀï¾ÍÊǹؼü²¿·Ö£¬hldsµÄÖ¸ÁîÊÇÒÔ\xFF\xFF\xFF\xFF,Ëĸö255µÄ¿ØÖÆÖ¸Áʼ£¬ÒÔ\x00Ò»¸ö¿ÕÖ¸Áî½á⣬ÆäÖеÄcommand¿ÉÒÔÊÇinfo¡¢ping¡¢players¡¢rules¡¢detailsµÈµÈ£¬·Ö±ðµÃµ½²»Í¬µÄÐÅÏ¢¡£
function _writeData($command){
if (!fwrite($this->_socket, "\xFF\xFF\xFF\xFF" . $command . "\x00")){
return false;
}else{
return true;
}
}
function _readData()
{
socket_set_timeout($this->_socket, $this->_timeout);
$data = fread($this->_socket,


Ïà¹ØÎÊ´ð£º

PHP³¬¼¶¼òµ¥ÎÊÌ⣬50·Ö - PHP / »ù´¡±à³Ì

<!--¹ºÂòÊýÁ¿-->
  <div class='buyinfo'>
  <table width='auto'>
  <tr>
  <td><span>¹ºÂòÊýÁ¿£º</sp ......

phpÎļþÄÜ·ñ±»±ðÈ˵ÁÈ¡?? - PHP / »ù´¡±à³Ì

ÎÒ¸ÕѧϰphpÇëÎÊ£¬Èç¹ûÎÒ°ÑphpÎļþÉÏ´«ÖÁ·þÎñÆ÷ºó£¬ÀýÈçhttp://www.****.com/cast.phpÕâ¸öÎļþ»á²»»á±»±ðÈËÏÂÔØ»ò¸´Öư¢£¿
¿ÉÒÔ±»ÏÂÔØ£¬Ò²¿ÉÒÔ²»±»ÏÂÔØ£¬¿´web·þÎñÆ÷¶Ô¸ÃÎļþȨÏÞµÄÅäÖÃ

¿´Äã¶ÔÎļþȨÏÞµÄÉèÖÃ
......

Î人ÄÄÀïPHPÅàѵ±È½ÏÕý¹æ - PHP / »ù´¡±à³Ì

¹ýÍêÄêҪȥÎ人ÁË£¬ÏëÁ˽âÒ»ÏÂPHPÅàѵ±È½ÏÕý¹æ?

Ŷ ¶ÔÁË£¬»¹ÓУ¡PHPÊÖ²á±ØÐëµÃŪһ¸ö

àÅ ÌìÌìÔÚ¿´Ê¥¾­£¨Ò»ÌìÒ²¾ÍÖ»ÄÜ¿´¸ö¶þʮҳ£©£¬PHP100ÊÓÆµ½Ì³Ì¿´ÁË33½²ÁË£¨Ò»ÌìÒ²Ö»¿´Ò»½²£©
ÎÒ»á¼á³Ö°ÑÕâ±¾ÊéºÍÊÓÆµ¸ã¶¨ ......

ÈçºÎÔÚphpÍøÕ¾ÖÐÌí¼Ó±³¾°ÒôÀÖ - PHP / »ù´¡±à³Ì

ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌø×ªÒ³Ãæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......

php´¦ÀíCSSÎļþ - PHP / »ù´¡±à³Ì

ÈçÒ»¸öCSS´úÂëΪ#checkoutShipTo_giftsoflady, .checkoutBillTo_giftsoflady {}Òª±ä³É#checkoutShipTo_xxxxx, #checkoutBillTo_xxxxx{}
cssÊéд¸ñʽ²»¹Ì¶¨.
ÓпÉÄÜÊÇ#id{},.class{}
Ò²ÓпÉÄÜÊÇ#id input{}
·´ÕýÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ