易截截图软件、单文件、免安装、纯绿色、仅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总结(2)

【对象】-->分析的结果-->【原型】-->【类】 业务是对象与对象的交互 实体 非实体 更清晰的分析对象间的关系 行为用来描述原型 属性对应特征 接口是对一类原型或多类原型某一方面方法的规范 实例-对象的的具体,类的实例化的结果 面向对象的3个步骤 OOA--理清逻辑,找出原型 【对象】-->【原型】 OOD--根据原型,解 ......

php里session的用法(超级经典)

php中session的用法
PHP中的session默认情况下是使用客户端的Cookie。当客户端的Cookie被禁用时,会自动通过Query_String来传递。
Php处理会话的函数一共有11个,我们详细介绍一下将要用到几个函数。
1、 session_start
函数功能:开始一个会话或者返回已经存在的会话。
函数原型:boolean se ......

广州中睿php培训课程

    中睿携多年It高端培训经验,集合了众多国内高级程序人才,推出金牌php培训课程体系,以php程序设计为主线,同时增设了linux系统管理,mysql数据库系统应用,javascript技术高级应用,Ajax技术高级应用等技术类课程,使您在起点就与世界最主流技术接轨。为了培养学员的实战开发技能,中睿特别在培训 ......

php对sql injection的防范

对http request过来的数据,凡是含有单引号,双引号,反斜线等都进行加斜线处理。防止进行注入操作。
/*
堵SQL漏洞
*/
function quotes($content){

//如果magic_quotes_gpc=Off,那么就开始处理
if (!get_magic_quotes_gpc()) {
//判断$content是否为数组
if (is_array($content)) {
//如果$content是 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号