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()
{
//
Ïà¹ØÎĵµ£º
¼òÊöÌâ(50·Ö)()
1¡¢ÓÃPHP´òÓ¡³öÇ°Ò»ÌìµÄʱ¼ä¸ñʽÊÇ2006-5-10 22:21:21(2·Ö)
echo date('Y-m-d H:i:s', strtotime('-1 day'));
»òÕß
$yesterday = time() - (24 * 60 * 60);
echo 'today:'.date('Y-m-d H:i:s')."\n";
echo 'yesterday:'. date('Y-m-d H:i:s', $yesterday)."\n";
2¡¢echo(),print(),print_r()µÄÇø±ð( ......
PHPÖеÄMYSQL³£Óú¯Êý×ܽá
1¡¢mysql_connect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó
¸ñʽ£º
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
Àý£º
$conn = @mysql_connect("localhost", "username", "password") or dir( ......
±àÒë°²×°php5.2.0ʱ³ö´í½â¾ö·½°¸
1.´íÎóÐÅÏ¢...................ÈçÏÂ
checking for mcrypt support... no
checking for mhash support... no
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS ......
CMSÒâΪ“ÄÚÈݹÜÀíϵͳ”£¬»ùÓÚÄ£°åµÄÓÅÐãÉè¼Æ£¬¿ÉÒÔ¼Ó¿ìÍøÕ¾¿ª·¢µÄËٶȺͼõÉÙ¿ª·¢µÄ³É±¾¡£Èç½ñ¹úÄÚPHP CMSÒѾºÜ¶à£¬ÆäÖв»·¦ÓÅÐãÃâ·Ñ¿ªÔ´Õߣ¬±¾ÎĽ«´ÓSEOµÄ½Ç¶ÈÀ´·ÖÎöPHP CMS£¬½ö×÷²Î¿¼¡£
1.phpcms
Ò»¸ö×ۺϵÄÍøÕ¾¹ÜÀíϵͳ£¬ÓÉPHP+MYSQL¹¹¼ÜÈ«Õ¾Éú³Éhtml£¬Äܹ»¿ìËÙ¸ßЧµØÓ¦ÓÃÓÚLINUXºÍWINDOWS·þÎñÆ÷ƽ̨£¬Í¬Ê ......
ÎĵµÊÇÕâô˵µÄ£º
PHP µÄÒýÓÃÔÊÐíÓÃÁ½¸ö±äÁ¿À´Ö¸Ïòͬһ¸öÄÚÈÝ¡£Òâ˼ÊÇ£¬µ±ÕâÑù×öʱ£º
<?php
$a
=&
$b
;
?>
ÕâÒâζ×Å $a
ºÍ $b
Ö¸ÏòÁËͬһ¸ö±äÁ¿¡£
×¢: $a
ºÍ $b
ÔÚÕâÀïÊÇÍêÈ«ÏàͬµÄ£¬Õâ²¢²»ÊÇ $a
Ö¸ÏòÁË $b
»òÕßÏà·´£¬¶øÊÇ $a
ºÍ $b
Ö¸ÏòÁËͬһ¸öµØ·½¡£
ËùÒÔ£º
<?ph ......