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

安装image magic的php扩展(Extension) Imagick

  在windows下安装image magic 的php扩展 imagick, 首先需要下载php_imagick.dll文件.这个dll文件非常关键.
如果下载了错误的php_imagick.dll.安装就会失败.我就是下载了N个这样的dll文件都未能安装成功.最后终于给我找到正确的dll文件了
下载地址:http://valokuva.org/outside-blog-content/imagick-windows-builds/
下载列表的目录以日期格式给出, 进入对应日期的目录中有4个dll文件.它们分别是:
php_imagick_st-Q16.dll    (16位色,不包含imagemagic)
php_imagick_st-Q8.dll      (8位色,不包含imagemagic)
php_imagick_dyn-Q16.dll (16位色, 包含imagemagic)
php_imagick_dyn-Q8.dll   (8位色,   包含imagemagic)
其中不包含imagemagic的dll文件还需要另外下载 imagemagic安装,
而包含imagemagic就不用说了吧.
我在载的是php_imagick_dyn-Q16.dll.
下载后改名为php_imagick.dll.并且放入php安装目录下的ext目录中.
修改php.ini.
添加如下代码
extension=php_imagick.dll
重启apache. 查看 phpinfo .就能看到 imagick 的扩展信息了.


相关文档:

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 ......

comparing strings in PHP with the == operator

最近在Greg Beaver's的blog上发表的一篇新文章 comparing strings in PHP with the == operator 中提及了PHP的 == 运算符在对字符串进行比较时值得注意的问题。
在某些情况下,PHP会把类数值数据(如含有数字的字符串等)转换成数值处理,== 运算符就是其中之一。在使用 == 运算符对两个字符串进行松散比较时,PHP会把类数 ......

php学习笔记(12):PHP+MYSQL留言板(上

require()  与  require_once()
    
      通常放在 PHP 程序的最前面,PHP 程序在执行前,就会先读入 require
所指定引入的文件,如果出现错误是致命的。
nclude()  与  include_once()
    
    &n ......

php 验证码

checkcode.php
====================
<?php
session_start();
$funcs = array('imagecreatetruecolor','imagecolorallocate','imagefill','imageline','imagedestroy','imagecolorallocatealpha','imageellipse','imagepng');
if(!function_exists('ob_gzhandler'))
    ob_clean();
 //crea ......

php 的 ajax 实现

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<input type="button" onclick="test();" value="提交"/>
<script type="text/javascript">
    function test(){
            var valid = {
& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号