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()
{
//
Ïà¹ØÎĵµ£º
ģʽÐÞÕý·û — ½â˵ÕýÔò±í´ïʽģʽÖÐʹÓõÄÐÞÕý·û
˵Ã÷
ÏÂÃæÁгöÁ˵±Ç°ÔÚ PCRE ÖпÉÄÜʹÓõÄÐÞÕý·û¡£À¨ºÅÖÐÊÇÕâЩÐÞÕý·ûµÄÄÚ²¿ PCRE Ãû¡£ÐÞÕý·ûÖеĿոñºÍ»»Ðб»ºöÂÔ£¬ÆäËü×Ö·û»áµ¼Ö´íÎó¡£
i (PCRE_CASELESS) Èç¹ûÉ趨´ËÐÞÕý·û£¬Ä£Ê½ÖеÄ×Ö·û½«Í¬Ê±Æ¥Åä´óСд×Öĸ¡£ m£¨PCRE_MULTILINE£© ĬÈÏÇé¿öÏ£¬PCR ......
ÔÌûµØÖ·£ºhttp://www.phpma.com/english/20071215/640.html
Description
array explode
( string separator, string string [, int limit])phpma.com
Returns an array of strings, each of which is a substring of string
formed by splitting it on boundaries formed by the string separator
. If limit
is ......
CMSÒâΪ“ÄÚÈݹÜÀíϵͳ”£¬»ùÓÚÄ£°åµÄÓÅÐãÉè¼Æ£¬¿ÉÒÔ¼Ó¿ìÍøÕ¾¿ª·¢µÄËٶȺͼõÉÙ¿ª·¢µÄ³É±¾¡£Èç½ñ¹úÄÚPHP CMSÒѾºÜ¶à£¬ÆäÖв»·¦ÓÅÐãÃâ·Ñ¿ªÔ´Õߣ¬±¾ÎĽ«´ÓSEOµÄ½Ç¶ÈÀ´·ÖÎöPHP CMS£¬½ö×÷²Î¿¼¡£
1.phpcms
Ò»¸ö×ۺϵÄÍøÕ¾¹ÜÀíϵͳ£¬ÓÉPHP+MYSQL¹¹¼ÜȫվÉú³Éhtml£¬Äܹ»¿ìËÙ¸ßЧµØÓ¦ÓÃÓÚLINUXºÍWINDOWS·þÎñÆ÷ƽ̨£¬Í¬Ê ......
µ±ÎÒÃÇÓÃWINDOWSËÑË÷ij°üº¬Ä³ÎÄ×ÖµÄÎļþʱ£¬¿ÉÒÔÔÚ“°üº¬ÎÄ×Ö”´¦ÌîÉÏËÑË÷´Ê¡£µ«ÊÇһЩ²»³£¼ûµÄºó׺ÃûÎļþWINDOWS²»»áËÑË÷£¬È磺£¬.log¡¢.dll¡¢.js¡¢.asp¡¢.xml¡¢.xsl¡¢.hta¡¢.css¡¢.wsh¡¢.cpp¡¢.c »ò .hµÈ¼°ÎÞºó׺ÃûµÄÎļþ¡£¶ÔÓÚÎҵȳÌÐò°®ºÃÕßÀ´ËµÊµÔÚÌ«²»·½±ãÁË£¬ËäÈ»ÓГÎı¾Ìæ»»´óʦ”µÈÈí¼þÄÜ×öÕ ......
1.È¡µÃµ±Ç°ÄÚ´æÊ¹ÓôóС£ºmemory_get_usage()
2.¼ÆËãÖ´ÐÐʱ¼ä£ºmicrotime(true)
3.ÉèÖÃscriptÖ´ÐÐʱ¼äÏÞÖÆset_time_limit
4.ÉèÖÃÄÚ´æÏÞÖÆini_set("memory_limit","256M");
3.´ÓÔ¶³ÌÏÂÔØÎļþµÄÁ½¸ö·½·¨£º
$contents=file_get_contents("http://www.govtrack.us/data/us/gis/zip4dist-prefix.t ......