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

PHP exif 介绍

 // PHP exif
// --
// wikipedia 介绍:
// EXIF(Exchangeable image file format)是可交换图像文件的缩写,是专门为数码相机的照片设定的,可以记录数码照片的属性信息和拍摄数据。
// EXIF可以附加于JPEG、TIFF、RIFF等文件之中,为其增加有关数码相机拍摄信息的内容和索引图或图像处理软件的版本信息。
// --
// php 中 exif 可以处理图片的元数据。例如:可以读取数码相机照到的照片的元数据。
// With the exif extension you are able to work with image meta data.
// For example, you may use exif functions to read meta data of pictures taken from digital cameras
// by working with information stored in the headers of the JPEG and TIFF images.
//
// Windows 用户使用该扩展必须启用 mbstring 扩展,并且 mbstring 扩展必须在 exif 之前加在。
// Windows users must enable both the php_mbstring.dll and php_exif.dll DLL's in php.ini.
// The php_mbstring.dll DLL must be loaded before the php_exif.dll DLL so adjust your php.ini accordingly.
// --
//
// 函数
exif_imagetype()
// 1/1
// 获取图片的扩展,返回一个整数,对应于 exif 中的常量
exif_read_data()
// 1/4
// Reads the EXIF headers from JPEG or TIFF, 返回一数组
// EXIF headers tend to be present in JPEG/TIFF images generated by digital cameras,
// but unfortunately each digital camera maker has a different idea of how to actually tag their images,
// so you can't always rely on a specific Exif header being present.
exif_tagname()
// 1/1
exif_thumbnail()
// 1/4
// Retrieve the embedded thumbnail of a TIFF or JPEG image
read_exif_data()
// alias of exif_read_data() 


相关文档:

PHP实例:用SESSION方法实现验证码

index.php(实现输入验证码页面)代码如下: Code代码如下: <html>
<head>
<title>check code</title>
</head>
<body>
<form name=check method=post action=check.php>
<input type=hidden name=init value=1>
验证 ......

php中session不能跨页传输的解决方案

在PHP中使用过SESSION的朋友可能会碰到这么一个问题,SESSION变量不能跨页传递。这令我苦恼了好些日子,最终通过查资料思考并解决了这个问题。我认为,出现这个问题的原因有以下几点:
1、客户端禁用了cookie
2、浏览器出现问题,暂时无法存取cookie
3、php.ini中的session.use_trans_sid = 0或者编译时没有 ......

centos 64位 + apache + php + gd 库安装

centos 64位 和32位安装有一些不同
安装apache
安装mysql
需要用到的包
zlib-1.2.3.tar.gz
 libiconv-1.11.tar.gz
freetype-2.3.5.tar.gz
libpng-1.2.20.tar.gz
 jpegsrc.v6b.tar.gz
gd-2.0.35.tar.gz
ibxml2-sources-2.6.30.tar.gz
gettext
1. zlib
tar zxvf zlib-1.2.3.tar.gz
cd zlib ......

PHP 调试指南


一、前提
       我们需要一个 Web 服务器来解析用 PHP 创建的页面并把它们显示到浏览器。本文中使用的是 Apache2。但是,任何 Web 服务器都可以满足要求。
       要利用本文中介绍的一些调试技术,需要安装 Eclipse V3.1.1 和插件 PHPEclipse V ......

java和php数字处理上

java使用Math类,php使用系统函数
ceil功能 大于等于某数(常用于分页页数计算)
php中:ceil(a/b)
java中:(int)Math.ceil((double)a/b))    Math.ceil在java中需要传入double型,而返回也是double型。注意这里用(double)a/b才可以。
a/b,(dobule)(a/b)都不行。因为他们会先自动舍弃小数取得整数
flooe ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号