易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关文档:

php应用

最近在学习php,页面已经做好了,现在就是和虚拟机里C代码的通信,socket编程还可以,就是拿数据的处理,难,。
类的编程我不会,没有学过C++。本来打算用结构体的,可是PHP里面居然没有结构体,怎么办呢?继续努力吧
......

PHP缓存代码

PHP缓存代码
好的页面缓存代码,可以减轻CPU和MYSQL负担。使用前,先在根目录创建“cache”文件夹,然后运行1.php,第一次运行和第二次运行速度差异很大。欢迎熟悉PHP的朋友使用和提意见。
使用方法:(请保存为temp.php)
 <?php
include('arrcache.php');
$cache = new ArrCache('cache',5,'txt');
......

php获取xml属性值

<!-- xml格式
<foo xmlns="test">
<bar attr='a'></bar>
<bar attr='b'></bar>
<bar attr='c'></bar>
</foo>
-->
<?php
$dom = new DOMDocument();
if (!$dom->load('attr.xml'))
{
echo "load books.xml failed!<br>";
re ......

java和php文件读写对比举例及解决让人头痛的乱码问题

JAVA文件读写必须要注意编码问题 
 java的文件写
直接使用FileWriter即可,第二个参数为追加写入,默认是覆盖写。写完必须close才会保存写好的内容。
默认情况如果没有会新建一个文件
FileWriter fw = null;
try {
fw = new FileWriter("/data/updatetime.dat", true); // true追加写入
fw.append ......

PHP mail Function With Attachments

原帖地址: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 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号