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

php操作word

<?

//
建立一个指向新COM组件的索引
$word

=

new
COM(”word
.
application”) or
die
(”Can
'
t start Word!”);
// 显示目前正在使用的Word的版本号
//echo “Loading Word, v. {$word->Version}<br>”;
// 把它的可见性设置为0(假),如果要使它在最前端打开,使用1(真)
// to open the application in the forefront, use 1 (true)
//$word->Visible = 0;
//打?一个文档
$word->Documents->OPen(”d:\myweb\muban.doc”);
//读取文档内容
$test= $word->ActiveDocument->content->Text;
echo $test;
echo “<br>”;
//将文档中需要换的变量更换一下
$test=str_replace(”<{变量}>”,”这是变量”,$test);
echo $test;
$word->Documents->Add();
// 在新文档中添加文字
$word->Selection->TypeText(”$test”);
//把文档保存在目录中
$word->Documents[1]->SaveAs(”d:/myweb/comtest.doc”);
// 关闭与COM组件之间的连接
$word->Quit();
?>


相关文档:

php Jpgraph 安装和配置

Jpgraph下载之后,安装非常简单,解压到一个文件夹中,例如:d:\Jpgraph,然后打开php的安装目录,找到php.ini文件,并修改其中的inlude_path参数,并在其后加上Jpgraph的路径,例如:inlude_path=".;d:\Jpgraph".
http://blog.csdn.net/zhuzhao/archive/2009/05/12/4174684.aspx ......

[转]细察 PHP V5.3.0 特性


细察 PHP V5.3.0 特性
级别: 中级
Stephen B. Morris, CTO, Omey Communications
2009 年 12 月 07 日
随着流行的 PHP 语言的不断演变,很多新特性使它在面向对象方面有了进一步的增强。本文通过一些 PHP V5.3 实例演示延迟静态绑定、名称空间支持、类方法重载以及变量解析和 heredoc 支持。
需求
除了对 PHP 和 H ......

PHP安装步骤(以apache 2 + php5.3为例)

1.     
Download Apache for windows MSI
file, and run it
By
default, port is 80, root dir is %apache_dir%/htdocs. You can update the
settings in conf/httpd.conf file
2.  If Apache Service can't be installed in "Control Panel > Admin Tools > Services&quo ......

[转]用php_screw加密PHP代码

开始之前,首先要澄清两个问题:第一,支持开源,不等于反对代码加密;第二,如果把不属于自己的东西(比如公司的)拿去开源,就更加不应该了。
以前知道的,PHP代码的加密都是用Zend的encoder,这东西不但是商业软件,好像还暴出过能够被破解的问题,所以就找到了替代的方案────php_screw,一个日本人开发的东东。
p ......

unubtu 下 Apache php 环境的搭建

一、 安装Apache
  下面,我们首先介绍如何安装Apache。具体安装命令如下所示:
  $ sudo apt-get install apache2
  然后运行Apache,命令如下所示:
  $ sudo /etc/init.d/apache2 restart
  Apache在安装期间将会新建一个目录:/var/www,该目录是该服务器中存放文档的根目录。只要在浏览器的地址栏输入 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号