delphi 编写的com 对象 用php调用的实例
delphi 编写的com 对象 用php调用
的
实例
delphi:
function Tmyxml.Get_xml: WideString;
begin
Get_xml:='wo shi a lei!';
end;
function Tmyxml.Get_xmldata: WideString;
var
xmlStr:string;
begin
xmlStr := '<?xml version="1.0" encoding="gb2312"?>';
xmlstr := xmlstr + '<user><name>张三</name><sex>男</sex></user>';
Get_xmldata:=xmlStr;
end;
php:
<?
$phpobj = new COM("abc.myxml");
echo $phpobj->xml;
echo $phpobj->xmldata;
//释放对象
$phpobj=null;
?>
实例下载:http://download.csdn.net/source/1976904
相关文档:
在我们的网站设计过程中,经常会用到多条件查询,本文的源码是一个二手房屋查询的例子。在本例中,我们要实现能够通过地理位置,物业类型,房屋价格,房屋面积及信息发布日期等多个条件查询到客户所需的资料。
查询文件(search.php)
一、生成查询语句:
以下为引用的内容:
<?
$conn=mysql_connect("localhost", ......
<!-- xml 格式
<books>
<book id='1001'>
<author>andylin</author>
<title>c language</title>
<publisher id="aaa">O'Reilly</publisher>
</book>
<book id='1002'>
<author>congfeng</author>
<t ......
Delphi和C++数据类型对照表
Delphi 字长/值域 C++
ShortInt &n ......
在网站需要建立共享接口的时候,可以使用soap。 下面介绍下在PHP中如何使用SOAP的完整过程。
1、确认PHP环境是否支持soap,检查php配置文件,把extension=php_soap.dll前的分号(;)去掉(windows);若是自己编译则编译时必须加上 --enable-soap选项。
2、建立soap服务端。 下面通过实例来说明如何建立服务端。
<?php
cla ......
原帖地址:http://www.zedwood.com/article/126/php-mail-function-with-attachments
This code sends an html formatted email with attachments. This email sending script actually sends both a plaintext and an html body of the email, allowing the email client to choose which to display. The plaintext emai ......