自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 资源 (2)
  • 收藏
  • 关注

转载 PHP - XML - Exporting Data to XML

Turn the result set into an XML document with PHPs DOM functions: // open connection $mysqli = new mysqli("localhost", "user", "pass", "db1");if (mysqli_connect_errno()) {    die("ERR

2008-10-11 20:56:00 686

转载 PHP - XML - Transforming XML

Use PHPs DOM and XSLT extensions together:// read XML data $xml = new DOMDocument;$xml->load(review.xml);// read XSL stylesheet data $xsl = new DOMDocument;$xsl->load(review.xs

2008-10-11 20:54:00 459

转载 PHP - XML - Validating XML

Use PHPs DOM extension to perform validation using the validate() method for a DTD:// read XML data $xml = new DOMDocument();$xml->load("data-1.xml") or die("ERROR: Cannot create DOMDocum

2008-10-11 20:44:00 739

转载 PHP - XML - Filtering XML Nodes with XPath

Use SimpleXMLs xpath() method:$xmlData =END"1.0"?>               20          mangoes          11                    22          strawberries          5          

2008-10-11 20:37:00 496

转载 PHP - XML - Filtering XML Nodes by Namespace

Find only those nodes belonging to a particular namespace. Use SimpleXMLs children() method with the namespace URI (Universal Resource Identifier): // define XML data string // containi

2008-10-11 20:31:00 449

转载 PHP - XML - Counting XML Element Frequency

Count the frequency of occurrence of a particular element or attribute in an XML document.Use PEARs XML_Statistics class: $xmlData =END1.0?>            The Matrix           

2008-10-11 20:27:00 456

转载 PHP - XML - Collapsing Empty XML Elements

 Use PEARs XML_Util class: $xmlData =END"1.0" encoding="UTF-8"?>"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"http://www.w3.org/

2008-10-11 20:15:00 473

转载 PHP - Xml - Adding or Removing XML Nodes

Use the appendChild(), replaceChild(), and removeChild() methods from PHPs DOM extension:// define XML data string $xmlData = END"1.0"?>    Humphrey Hippo    chocolate    Star War

2008-10-11 18:41:00 360

转载 PHP - XML - Creating XML

Use PHPs DOM extension to create a DOM tree and append nodes to it:// initialize DOM object $xml = new DOMDocument("1.0");// add root node  $root = $xml->createElement("list");$xml-

2008-10-11 18:38:00 456

转载 PHP - XML - Recursively process an XML document.

Write a recursive function to traverse the XML document tree:// create XML data string $xmlData =END"1.0"?>    The Matrix                        Keanu Reeves            Neo  

2008-10-11 18:08:00 536

转载 PHP - XML - Modifying Node and Attribute Values

Use SimpleXML to read the XML file, assign new values to elements or attributes, and save the changes back to the file:// read XML tree $xml = simplexml_load_file("data.xml")↩or die("ERROR

2008-10-11 18:00:00 467

转载 PHP - Retrieving Node and Attribute Values From XML

Use SimpleXML to locate the node or attribute and retrieve its value:// define XML data string $xmlData = END"1.0"?>     "128" green="0" blue="128">purpleEND;// read XML data

2008-10-11 17:41:00 778

转载 AJAX - Handling White Space in a Cross-Browser Way

由于一些浏览器在处理XML数据时不忽略数据的前空格,所以在处理前要去掉这些空格。      function removeWhitespace(xml)       {        var loopIndex;        for (loopIndex = 0; loopIndex           loopIndex++) {          va

2008-10-10 10:36:00 398

转载 Using POST method in XMLHTTPRequest(Ajax)

var url = "get_data.php";var params = "lorem=ipsum&name=binny";http.open("POST", url, true);//Send the proper header information along with the request http.setRequestHeader("Content-typ

2008-10-09 17:15:00 384

转载 PHP - Querying a MySQL Database

  //wordgrabber.php   //Require in the database connection.   require_once ("dbconnector.php");  //Open the database.   $db = opendatabase();  //Then perform a query to grab a ra

2008-10-08 21:22:00 482

转载 PHP - Connecting to MySQL

  //dbconnector.php   //Define the mysql connection variables.   define ("MYSQLHOST", "localhost");  define ("MYSQLUSER", "apressauth");  define ("MYSQLPASS", "tasks");  define ("M

2008-10-08 21:12:00 395

转载 XMLHttpRequest - Sending a Request to the Server

In order to make a request to the server, you need to confirm a few basic functionality-based questions. First off, you need to decide what page (or script) you want to connect to, and then what area

2008-10-08 18:09:00 403

转载 XMLHTTP 跨浏览器的用法

 //Create a boolean variable to check for a valid Internet Explorer instance. var xmlhttp = false;//Check if we are using IE. try {  //If the Javascript version is greater than 5.   

2008-10-08 18:03:00 397

转载 XMLHttpRequest Object Properties

 Property Description onreadystatechange Used as an event handler for events that trigger upon state changes readyState Contains the current state of the object (0:

2008-10-08 18:02:00 371

原创 XMLHttpRequest Object Methods

Method Description abort() Cancels the current request getAllResponseHeaders() Returns all HTTP headers as a String type variable getResponseHeader() Return

2008-10-08 17:58:00 349

转载 Common HTTP Response Codes & HTTP Request Methods

Common HTTP Response Codes: Code Description 200 OK This response code is returned if the document or file in question is found and served correctly. 304 Not Modified

2008-10-08 17:50:00 516

原创 mysql sql语句中的特殊字符处理

 今天在调试Sql语句时遇到了几个地方报语法错误,主要是Sql文本中特殊字符问题。环境是mysql , vb6 , 用mysql odbc连接数据库。在向mysql数据库中插入文本类型的字段时注意替换的字符有。1. 单引号 yourtext = replace(yourtext, "", "")2. 转义字符"/" yourtext = replace

2008-05-11 19:15:00 5457

转载 如何用vb向网页发送数据

一、用Webbrowser 代码:Webbrowser.navigate ("http://xxx/1.htm?name=apple&id=001")二、用Inet (注意数据接收方式是POST还是GET ,具体的方式是在1.htm的...中代码:(post方式)1、设定数据头:strSendHeader = "POST /hotbuy/myhotbuy.php HTTP/1.1" & vbCrL

2008-05-08 10:14:00 1172 1

转载 在VB中用XMLHTTP获取网页Html文本

Public Function GetCode(CodeBase, Url) 第一个参数是设置编码方式(GB2312或UTF-8)第二个参数是地址.    Dim xmlHTTP1    Set xmlHTTP1 = CreateObject("Microsoft.XMLHTTP")    xmlHTTP1.Open "get", Url, True    xmlHTTP1.send    

2008-05-06 17:42:00 2932 1

转载 VB中在窗体上动态生成控件的代码。

Dim   WithEvents   cmdMyCommand   As   VB.CommandButton             Option   Explicit                 Dim   WithEvents   ctlDynamic   As   VBControlExtender             Dim   WithEvents   ctlText   

2008-05-06 15:07:00 1762

原创 对日外包项目特点

本人参加过多个对日外包的项目,对其有以下几点看法:1、项目阶段主要是从内部设计到单体测试。2、总体来说项目比较简单,做起来非常枯燥。日本的软件工程比较规范,文档做的非常细。基本上就像做翻译工作,如做内部设计就是把外部设计重新写一遍,只是换一种写法而已。没有任何自己发挥的地方。很多时候就觉得用打字员就可以完成这些工作了。3、大多数做日本外包项目的公司都是加班加班再加班。 总之加班比较厉害。给那些想要

2008-04-30 20:02:00 1582

原创 潜水多年,从今天开始在CSDN写博客。

来Csdn至少有5年了吧。在这里得到了好多,遇到问题,只要在论坛里搜索一下基本上可以找到答案。非常感谢Csdn。写什么呢?本人文笔不好,不太善于表达。所以就不准备在这里写什么散文呀心情随笔之类的文章了。我想在这里把自己的一些经历或有用的资源共享给大家。写到这里我突然想起,为什么要想起写Blog呢?或许有以下几点。 最近有点无聊,主要是现在在公司暂时还没有项目做,很闲,总想找点

2008-04-29 23:47:00 585 1

在Excel中得到IE的数据

在VB中通过API得到当前的IE窗口,并通过发送消息Copy IE窗口中的数据到EXCEL中。<br>注意此版本是针对IE6的,IE7需要修改代码。

2008-05-01

fotologsearch

用VB实现网页中的搜索,并获且结果。

2008-05-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除