phpͼƬ´¦ÀíÀࣺËõÂÔ£¬²Ã¼ô£¬Ô²½Ç£¬Çãб
<?php
/*
ͼƬ´¦ÀíÀࣺËõÂÔ£¬²Ã¼ô£¬Ô²½Ç£¬Çãб
*/
class resizeimage
{
//ͼƬÀàÐÍ
var $type;
//ʵ¼Ê¿í¶È
var $width;
//ʵ¼Ê¸ß¶È
var $height;
//¸Ä±äºóµÄ¿í¶È
var $resize_width;
//¸Ä±äºóµÄ¸ß¶È
var $resize_height;
//ÊÇ·ñ²Ãͼ
var $cut;
//ԴͼÏó
var $srcimg;
//Ä¿±êͼÏóµØÖ·
var $dstimg;
//Ô²½ÇÔ´
var $corner;
var $im;
function resizeimage($img, $corner, $wid, $hei,$c, $corner_radius, $angle)
{
$this->srcimg = $img;
$this->corner = $corner;
$this->resize_width = $wid;
$this->resize_height = $hei;
$this->cut = $c;
$this->corner_radius = $corner_radius;
$this->angle = $angle;
//ͼƬµÄÀàÐÍ
$this->type = substr(strrchr($this->srcimg,"."),1);
//³õʼ»¯Í¼Ïó
$this->initi_img();
//Ä¿±êͼÏóµØÖ·
$this -> dst_img();
//--
$this->width = imagesx($this->im);
$this->height = imagesy($this->im);
//Éú³ÉͼÏó
$this->newimg();
ImageDestroy ($this->im);
}
function newimg()
{
//
Ïà¹ØÎĵµ£º
¸ÚλְÔð
1¡¢ÐÖúϵͳ¼Ü¹¹Éè¼ÆÊ¦½øÐÐϵͳ¼Ü¹¹Éè¼Æ¹¤×÷£»
2¡¢³Ðµ£WebÓ¦ÓúËÐÄÄ£¿éµÄÉè¼Æ/ʵÏÖ¹¤×÷£»
3¡¢³Ðµ£Ö÷Òª¿ª·¢¹¤×÷£¬¶Ô´úÂëÖÊÁ¿¼°½ø¶È¸ºÔð£»
4¡¢½øÐйؼü¼¼ÊõÑéÖ¤ÒÔ¼°¼¼ÊõÑ¡Ð͹¤×÷£»
5¡¢ºÍ²úÆ·¾Àí¹µÍ¨²¢È·¶¨²úÆ·¿ª·¢ÐèÇó£»
¸ÚλҪÇó
1¡¢¾ßÓл¥ÁªÍøÁìÓòÏà¹ØÏîÄ¿¿ª·¢¹¤×÷¾Ñ飬¶Ô»¥ÁªÍøÒµÎñÒÔ¼°¼¼ÊõÓÐÏà ......
²âÊÔ£ºhttp://www.yincode.com
Óû§£ºtest1 test2 test3
ÃÜÂ룺123456
=======================================
2010/01/12/18:54:24
=======================================
¹È¸èä¯ÀÀÆ÷ä¯ÀÀ²»Õý³£
main.js
function getData(u,m,callBack){
var ru=u+"&r="+Math.random();
$(" ......
/*
ÓÃPHPµÄDOM¿Ø¼þÀ´´´½¨XMLÊä³ö
ÉèÖÃÊä³öÄÚÈݵÄÀàÐÍΪxml
*/
header('Content-Type: text/xml;');
//´´½¨ÐµÄxmlÎļþ
$dom = new DOMDocument('1.0', 'utf-8');
//½¨Á¢<response>ÔªËØ
$response = $dom->createElement('response');
$dom->appendChild($response);
//½¨Á¢<books>ÔªËØ²¢½«Æä×÷ ......
µ±ÎÒÃÇÓÃWINDOWSËÑË÷ij°üº¬Ä³ÎÄ×ÖµÄÎļþʱ£¬¿ÉÒÔÔÚ“°üº¬ÎÄ×Ö”´¦ÌîÉÏËÑË÷´Ê¡£µ«ÊÇһЩ²»³£¼ûµÄºó׺ÃûÎļþWINDOWS²»»áËÑË÷£¬È磺£¬.log¡¢.dll¡¢.js¡¢.asp¡¢.xml¡¢.xsl¡¢.hta¡¢.css¡¢.wsh¡¢.cpp¡¢.c »ò .hµÈ¼°ÎÞºó׺ÃûµÄÎļþ¡£¶ÔÓÚÎҵȳÌÐò°®ºÃÕßÀ´ËµÊµÔÚÌ«²»·½±ãÁË£¬ËäÈ»ÓГÎı¾Ìæ»»´óʦ”µÈÈí¼þÄÜ×öÕ ......
£¨×ª£©ÎÊÌ⣺
ÓÐûÓа취ÔÚphpÖÐʵÏÖ¶àÏß³ÌÄØ£¿
¼ÙÉèÄãÕýÔÚдһ¸ö»ùÓÚ¶ą̀·þÎñÆ÷µÄphpÓ¦Óã¬ÀíÏëµÄÇé¿öʱͬʱÏò¶ą̀·þÎñÆ÷·¢ËÍÇëÇ󣬶ø²»ÊÇһ̨½Óһ̨¡£
¿ÉÒÔʵÏÖÂð£¿
»Ø´ð£º
µ±ÓÐÈËÏëҪʵÏÖ²¢·¢¹¦ÄÜʱ£¬ËûÃÇͨ³£»áÏëµ½ÓÃfork»òÕßspawn threads£¬µ«Êǵ±ËûÃÇ·¢ÏÖphp²»Ö§³Ö¶àÏ̵߳Äʱºò£¬´ó¸Å»áת»»Ë¼Â·È¥ÓÃһЩ²»¹»ºÃµÄ ......