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

Hello World!之php调用COM+组件(转)

上次继本人发布了VC编写PHP扩展之Hello World篇后,反映很强烈,大家都希望能脱离PHP菜鸟行列,这次我给大家带来PHP调用C#编写的COM+组件。 COM+组件源代码 CODE:using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Reflection; using System.Data.OleDb; using System.Data; using System.Collections; using System.Collections.Specialized; namespace comtest { [Guid("DE03FB14-23D6-4be0-93EA-C27651A22A37")] public interface ITest { string Test(string test); [DispId(0)] string About(); [DispId(1)] int Add(int a, int b); } [Guid("0ED3C99A-6EBB-4df5-B03F-16CACE242C67")] public class Class1 : ITest { public string Test(string test) { return test; } public string About() { return "欢迎访问 http://www.sojqi.com"; } public int Add(int a, int b) { return a + b; } } } 以上代码编译后生成 comtest.dll 然后将其注册 php调用 [php]
add($t1,$t2); $f=$b->about(); echo $r; echo $f; ?> [/php]


相关文档:

how to install apache, PHP and MySQL on Linux

how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1 operating systems, but most of the steps ought to be valid for all Linux-lik ......

PHP初学

   现在对PHP感觉越来越顺手了,对HTML的标签越来越熟悉了,可是对PHP的插件的认识还为之甚少。
   但是,说实话,目前的我貌似也不需要使用PHP的插件,用插件的目的可能是为了显得比较牛吧,呵呵。
   但是还是踏踏实实的学习吧,毕竟额的C++还没有学,对于PHP的封装和编程一点也不了解。 ......

IIS的PHP最佳配置

转自:http://www.phpq.net
准备:
1、一台安装好的 Windows 2003 服务器,并且已经安装了 IIS 6。
2、下载 windows 版的 PHP 二进制压缩包。
安装:
解压缩 PHP 二进制压缩包到 C:\php 目录下(这里假设 C: 盘是系统盘,即安装了Windows 系统的盘,如果系统盘是 D:
盘,则解压缩到 D:\php 目录下,以此类推,下 ......

FastCGI 不完全高级指南(PHP版,Windows平台)

一、FastCGI是什么?
FastCGI是语言无关的、可伸缩架构的CGI开放扩展,其主要行为是将CGI解释器进程保持在内存中并因此获得较高的性能。众所周知,CGI解释 器的反复加载是CGI性能低下的主要原因,如果CGI解释器保持在内存中并接受FastCGI进程管理器调度,则可以提供良好的性能、伸缩性、Fail- Over特性等等。
FastCGI的官 ......

php 字符串、文件转化成二进制流文件

$file1 = 'F:/46.gif';
$file2 = 'F:/test.txt';
$file3 = 'F:/47.gif';
$size = filesize($file1);
echo '文件大小为:'.$size;
echo "\n<br>转化为二进制 ...";
$content = file_get_contents($file1);
$content = bstr2bin($content);
$fp = fopen($file2, 'w');
fwrite($fp, $content);
fclose($fp);
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号