• ExtJs 可视化设计教程

    ExtJs Sencha Architect可视化设计教程

    0
    26
    6MB
    2017-06-06
    10
  • delphi socket call php socket 例子

    delphi socket call php socket 例子,可根据需要扩展写成聊天室、网站助理类似淘宝助理,有订单提醒。 <?php //确保在连接客户端时不会超时 set_time_limit(0); $port = 10081 ; $ip = '192.168.1.102'; // create a streaming socket, of type TCP/IP $sock = socket_create ( AF_INET , SOCK_STREAM , SOL_TCP ); // set the option to reuse the port socket_set_option ( $sock , SOL_SOCKET , SO_REUSEADDR , 1 ); // "bind" the socket to the address to "localhost", on port $port // so this means that all connections on this port are now our resposibility to send/recv data, disconnect, etc.. socket_bind ( $sock , $ip , $port ); // start listen for connections socket_listen ( $sock ); // create a list of all the clients that will be connected to us.. // add the listening socket to this list $clients = array( $sock ); while ( true ) { // create a copy, so $clients doesn't get modified by socket_select() $read = $clients ; // get a list of all the clients that have data to be read from // if there are no clients with data, go to next iteration if ( socket_select ( $read , $write = NULL , $except = NULL , 0 ) < 1 ) continue; // check if there is a client trying to connect if ( in_array ( $sock , $read )) { // accept the client, and add him to the $clients array $clients [] = $newsock = socket_accept ( $sock ); // send the client a welcome message socket_write ( $newsock , "这是一个delphi(客户端) socket 与 PHP_socket(服务器) 通信的例子 测试,交流QQ:410578660。 but ill make an exception :)\n" . "There are " .( count ( $clients ) - 1 ). " client(s) connected to the server\n" ); socket_getpeername ( $newsock , $ip ); echo "New client connected: { $ip } \n" ; // remove the listening socket from the clients-with-data array $key = array_search ( $sock , $read ); unset( $read [ $key ]); } // loop through all the clients that have data to read from foreach ( $read as $read_sock ) { // read until newline or 1024 bytes // socket_read while show errors when the client is disconnected, so silence the error messages $data = @ socket_read ( $read_sock , 1024 , PHP_NORMAL_READ ); // check if the client is disconnected if ( $data === false ) { // remove client for $clients array $key = array_search ( $read_sock , $clients ); unset( $clients [ $key ]); echo "client disconnected.\n" ; // continue to the next client to read from, if any continue; }

    0
    143
    730KB
    2016-01-03
    14
  • PHP 5 权威编程 配书源码(全)Power Programming

    《PHP5权威编程》是由美国人古曼兹、贝肯、瑞桑斯编著,简张桂翻译,电子工业出版社于2007年12月1日出版的关于PHP5应用程序的技术类图书。该书全面介绍了PHP 5中的新功能、编程方法及设计模式,还分析阐述了PHP 5中新的数据库连接处理、错误处理和XML处理等机制,帮助读者系统了解、熟练掌握和高效应用PHP。

    3
    100
    3.75MB
    2015-07-12
    9
  • C#winform调用PHP_Webservices例子

    C#winform调用PHP_Webservices例子

    1
    291
    117KB
    2015-01-11
    9
  • tree with tab

    extjs 左边窗口treepanel 菜单与右边窗口tabpanel 交互 var westPanel = Ext.create('Ext.tree.Panel', { title : '菜单', region : 'west', margins : '0 5 0 0', width : 200, store : store1, rootVisible : false, listeners : { itemclick : function(tree, record, item, index, e, options) { var nodeText = record.data.text; var tabPanel = viewport.items.get(1); var tabBar = tabPanel.getTabBar(); for ( var i = 0; i < tabBar.items.length; i++) { if (tabBar.items.get(i).getText() === nodeText) { var tabIndex = i; } } if (Ext.isEmpty(tabIndex)) { tabPanel.add({ title : record.data.text, bodyPadding : 10, closable: true , html : record.data.text }); tabIndex = tabPanel.items.length - 1; } tabPanel.setActiveTab(tabIndex); } } });

    0
    52
    618KB
    2014-07-07
    0
  • C#与PHP通讯源码

    private void button1_Click(object sender, EventArgs e) { try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://localhost/c_call_php/fromphp2.php"); //HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://localhost/c_call_php/fromphp.php"); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); StreamReader input = new StreamReader(response.GetResponseStream()); DataSet dsTest = new DataSet(); dsTest.ReadXml(input); int i, j, varTotCol = dsTest.Tables[0].Columns.Count, varTotRow = dsTest.Tables[0].Rows.Count; for (j = 0; j < varTotRow; j++) ++++++++++++++++++++++++++++++++++++++++++++++++++ <?php //***************************** //email:410578660@qq.com //sujm //***************************** $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'sujm'; $dbname = 'csp_data'; //Connecting to DB $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql'); mysql_select_db($dbname); $query = "SELECT * FROM users"; $result = mysql_query($query); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; echo "<MessageXML>"; while($row = mysql_fetch_array($result, MYSQL_ASSOC))

    4
    91
    34KB
    2013-06-23
    9
  • SDS_ONE_A56注册机安装指南

    SDS_ONE_A56_注册机+岛精破解版安装指南

    4
    547
    2.5MB
    2013-05-27
    26
  • Extjs-ExtDesigner-1.1.2+完全解密工具.part1.rar

    Extjs-ExtDesigner-1.1.2+完全解密工具.part1.rar

    0
    119
    13.35MB
    2011-08-27
    9
  • delphi 写一对一,一对多远程视频例程

    unit VFW; Video for windows /// Adapted from Thomas Schimming's VFW.PAS // // Ripped all COM/ActiveX stuff and added some AVI stream functions. //

    4
    65
    14KB
    2011-01-16
    9
  • Silverlight 完美中文入门4-4CHM格式

    什么是 Silverlight? Silverlight 允许您创建具有以下功能的最先进的应用程序: 它是一种跨浏览器、跨平台的技术。它在所有常见的 Web 浏览器中运行,包括 Microsoft Internet Explorer、Mozilla Firefox 和 Apple Safari,并在 Microsoft Windows 和 Apple Mac OS X 上运行。 它由可在数秒内安装的很小的下载程序支持。 它对视频和音频进行流处理。它将视频品质调整到适合各种环境:从移动设备到桌面浏览器以及 720p HDTV 视频模式。 它包括用户可以直接在浏览器中操作(拖动、旋转和缩放)的足够清晰的图形。 它读取数据并更新显示内容,但是不通过刷新整个页面来打断用户。

    4
    50
    10.7MB
    2010-02-12
    3
关注 私信
上传资源赚积分or赚钱